please add x .= f()
Florent FAYOLLE
florent.fayolle69 at gmail.com
Mon Aug 10 17:54:50 UTC 2015
Hello,
> x .= f() should be syntax sugar for x = x.f()
>
> x .= f().g().h() should be x = x.f().g().h()
+1! I've made some weeks ago a prototype of this in sweet.js:
https://github.com/fflorent/member-access-assignment
Except that the syntax is rather =. (I have probably been influenced by
the CoffeeScript's existential operator). The reverse looks fine to me too.
> -1 Please no :)
Why?
Florent
More information about the es-discuss
mailing list