It was recently suggested 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 some possible future function shorthand?
Allen_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss