Day 2 meeting notes

Kevin Curtis kevinc1846 at gmail.com
Sun Aug 1 10:55:34 PDT 2010


for (k in lst) { ... } // key

for (v, in lst) { ... } // value - trailing comma

for (v,k in lst) { ...} // value, key

And/Or using some symbol to indicate an iterator:
for ([k,v] in @lst) {...} // with destructuring
//@ = sugar for the method call to return the iterator.
let it = @lst;

How much leeway is there for adding new keywords?

--


More information about the es-discuss mailing list