please add x .= f()

Florent FAYOLLE florent.fayolle69 at
Mon Aug 10 17:54:50 UTC 2015

> 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:

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 :)


More information about the es-discuss mailing list