Jeremy Martin (2013-12-12T19:14:02.000Z)
forbes at lindesay.co.uk (2013-12-16T14:39:02.451Z)
My apologies if this has already been covered, but can anyone point to the rationale for arrow functions (primarily) targeting mappings? 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. Grammar problems aside, I guess I don't follow the reasoning to #3. Conversely, I think that a case could be made that minimizing the differences between "normal" functions and arrow functions is desirable in its own right.