3 ms·
This is standard practice in a lot of places because bare Booleans in parameter lists don't communicate anything useful to the reader. Don't know if there are I
by _moof 5y ago
This is standard practice in a lot of places because bare Booleans in parameter lists don't communicate anything useful to the reader. Don't know if there are IDEs that automate it though. (In most languages one should avoid designing functions that take Booleans like this in the first place and use a flags/options parameter instead.)
- nyuszika7h 5y agoIn Python, you can just specify `foo=bar` when invoking the function, or even better, make `foo` a keyword-only argument.