Hacker News new | past | comments | ask | show | jobs | submit login

I don't know, I think I find the Google Python Style Guide just as persuasive in the opposite direction. http://google-styleguide.googlecode.com/svn/trunk/pyguide.ht...

The reason I would tend to use default arguments in Python and C but not in C++ would be that it can get confusing if you throw in C++'s function overloading. A function by its very nature can't help but have default behavior, and if someone realizes they need to override the defaults they'll probably end up in the documentation or function definition or some other place that will let them realize they can adjust the defaults.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: