2 ms·
CoffeeScript already has an of operator (like js in) and an in operator (array like iteration) neither of which could easily be made to both (I think). So we'd
by almost 13y ago
CoffeeScript already has an of operator (like js in) and an in operator (array like iteration) neither of which could easily be made to both (I think). So we'd probably need a new name. Once "of" is in V8 we can compile to it directly though.
- wycats 13y agoIt's not clear to me how to compile directly to it without breaking CoffeeScript code that already uses for/of. Is the idea to break compatibility with existing CoffeeScript code? See my longer question about this upthread.
- almost 13y agoI honestly don't know, this was just a quick hack this morning while I had a hangover :) I think it's good to have the conversation though!
- bayesianhorse 13y agoI'm not current on what kind of compatibility coffeescript is trying to keep, but IE6 certainly not going to like the newer V8 features...