> > > I think it's fairly self-evident that they are a natural fit for such use > cases, but I find it less self-evident that they are inherently not useful > for others (e.g., generators). I feel like I keep seeing the following > (implied) argument: > > 1) Arrow functions are good for mappings > 2) Generators aren't mappings > 3) Arrow functions aren't good for generators. > > That would be me. : )
I'm trying to look at things not just in terms of "what would be useful", although that's important. I'm looking at the overall design of the language, and understand the way all the parts fit together into a beautiful whole. It's an aesthetic thing, which I can appreciate may be a little difficult to swallow. FWIW, I would restate the argument as follows: 1) Arrow functions "express" mappings 2) Generators "express" sequences 3) Don't muddy the waters Anyway, I'm not really trying to convince anyone. I just think we should reserve the right to have this discussion later, and not prematurely commit to "=!>" or whatever.
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss