|
|
|
|
|
by bookface
4624 days ago
|
|
Agreed completely about how awful dynamic languages can be in this respect. I've found what helps a lot is consistent naming of parameters. For example, numberOfWidgets (an integer) versus widgets (a collection) or file (a file handle) versus path (a string). |
|
But consistent naming does not help with the "optionality" of parameters.