Comment #3 on issue 2700 by [email protected]: Implement harmony arrow
function syntax
http://code.google.com/p/v8/issues/detail?id=2700
For me the main benefits would be:
1. Easier to read. Today mostly all modern languages has this syntax: (C#
http://msdn.microsoft.com/en-us/library/vstudio/bb397687.aspx, Dart:
https://www.dartlang.org/docs/spec/latest/dart-language-specification.html#h.kt174mfrzv4a
). Some other very close to that. But in general this is much easier/faster
to read:
[1,2,3].map(x => x*2).filter(x => x < 4)
compared to
[1,2,3].map(function(x) { return x*2}).filter(function(x) { return x < 4})
2. Just faster to write code. Even using some advanced editors you still
need to press more keystrokes. Why not to make life little bit easier?
3. Now Firefox already supports this syntax even in stable versions. By
implementing this in V8 it will allow to write the same code at least for
both Firefox and Chrome/Node.JS
Of Course it could be abused, but for simple expressions this would be a
great feature to have. Waiting this feature to be released.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.