3 ms·
A lot of people in this thread have argued that named parameters mean you can add bool params to functions. e.g. getUserMessage(userId, fullMessage=true) Whil
by cgrealy 7y ago
A lot of people in this thread have argued that named parameters mean you can add bool params to functions.
e.g. getUserMessage(userId, fullMessage=true)
While that can help, I'd still argue against it unless your language has some mechanism to force use of name. Because if you can omit the name (i.e. getUserMessage(userId, true)) then someone will omit the name.