Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Other problems though such as default function parameters are less likely to be addressed (it seems to me).

It's unlikely to be addressed given that Google style guide forbids using default function parameters even in C++.

> This is a problem because it means lots of code will be written in which there are implicit defaults (just pass 0!)

"Just pass 0" is not a good way to implement defaults.



Yes that is exactly my point. But it is what WILL happen in a lot of Go code.


Why wouldn't a more sensible solution happen instead? For example creating _ex versions of functions with many parameters?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: