6 ms·
Yeah that's true, but I consider it a feature and not a bug. There was a rule in Google's style guide that said to only pass optional arguments with names, and
by chubot 7y ago
Yeah that's true, but I consider it a feature and not a bug.
There was a rule in Google's style guide that said to only pass optional arguments with names, and required args without names. It basically enforced this separation while being slightly less flexible, because you can't have optional positional args or required named args.
Tens of millions of lines of code was written by thousands of programmers in that style, and it caused no problems at all. On the contrary it made code more consistent and readable.