It was recently suggest to me that it is unlikely that we will ever adopt -> as
as function expression shorthand symbol and that this means we could consider
using that symbol sequence for other purposes. In particular, it would be a
reasonable and possibly less controversial alternative to the <| symbol. I
would have no objection to that switch and have written the suggestion up at
http://wiki.ecmascript.org/doku.php#suggestion_to_replace_with
Some examples of this usage of -> include:
MyObject.prototype -> {a:1,b:2}
appArrayBehavior->[0,1,2,3,4,5]
let subclass = superclass -> function () {};
var p = newRegExpMethods -> /[a-m][3-7]/
What do you think? Do you like -> better than <| ? Is it ok to not have it
available for functions?
Allen
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss