Re:Gist to add CoffeeScript friendly argument order to Under...
by shaunxcode on Sunday May 06, 2012 @08:26PM
(#3936975)
I dig what you are saying but after some reflection decided I would rather see kv args. Here is a gist to accomplish that: https://gist.github.com/2625081 (wish there was simple way to introspect a fn and get its arg names, but saying that a lot of underscore functions have dynamic arities so this only makes sense for specific functions anyway)
Nice thing about that is you don't have to rememeber arg order (though you do have to remember the kv names). In coffee though you have less commas, feels nearly smalltalkish.
[ Parent
| on HN ]