However, if it is an interface exposed to the public where you are not certain of the ordering, then named parameters may be in order.
You really think that remembering the ordering of parameters is harder than remembering the names, spelling, casing, presence or absence of leading hyphens etc?
Do you you use (or just know of) a non-constructor api that you feel really benefits from the use of named parameters?
In reply to Re^3: How should named paramater keys be named?
by BrowserUk
in thread How should named paramater keys be named?
by davido
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |