4 ms·
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/pygui
by Symmetry 15y ago
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.html#Default_Argument_Values 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.