Hacker News new | past | comments | ask | show | jobs | submit login

> 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.




* 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: