Archive for March 21st, 2012

21Mar

Coffeescript deconstruction of arrays

Posted by Elf Sternberg as javascript

Most people who’ve been using Coffeescript for the past year are probably aware by now of argument deconstruction for objects. ┬áThis is a nifty feature of Coffeescript that lets us take this: myfunc = (options) -> @foo = options.foo @bar = options.bar … And instead say this: myfunc = ({@foo, @bar}) -> … In both […]


Subscribe to Feed

Categories

Calendar

March 2012
M T W T F S S
« Feb   Apr »
 1234
567891011
12131415161718
19202122232425
262728293031