3 ms·
> People will often make mistakes when a function has 3 or more booleans A function with three or more positional parameters in a language that isn’t badly bro
by dragonwriter 5y ago
> People will often make mistakes when a function has 3 or more booleans
A function with three or more positional parameters in a language that isn’t badly broken (that is, one that supports keyword and/or structured parameters, which pretty much all significant languages do) is, IMO, a code smell. Even if more specific typing and IDE pulling up signatures can makes it less likely to make usage errors, readability is impaired.