|
|
|
|
|
by rntz
2557 days ago
|
|
If the name is mandatory, as it is in Smalltalk, then this basically solves the issue. If the name is optional, as it usually is in eg. Python, then there is a temptation for the writer to omit it, which means the reader won't know what "True" or "False" stands for. Are there languages besides Smalltalk and its descendants with mandatorily-named parameters? |
|
Python 3 has a nicer way of doing the same thing, that I can’t remember.
(Sourced from the book “Effective Python: 59 Specific Ways to Write Better Python”.)