4 ms·
> Not really, you lose most of the validation and documentation... This is only true if you don't replace these forms of documentation with something better, w
by ericingram 14y ago
> Not really, you lose most of the validation and documentation...
This is only true if you don't replace these forms of documentation with something better, which I'd do.
- masklinn 14y ago* Validation is not documentation, either it's there or it's not there, with built-in keyword arguments it's there, with a hash-hack it probably isn't. * Documenting a hash-hack will still require spelling out that one of the positional parameters is a hash, then diving into that hash to spell out the various keys. This adds one worthless level of indirections to first-class keyword parameters, which can just treat all parameters the same way for documentary purposes.