Syntax to get same object that method was called on (Easymethodchaining)

Eric Suen eric.suen.tech at gmail.com
Mon Oct 26 10:02:17 UTC 2015


What I means is obj.(f1() , f2()) may better than obj.f1()#f2(), thought 
your syntax is shorter.
1. it does not need new operator.
2. # is comment in some other languages
3. if you want result, you can do with obj.(a = f1(), b = f2()) or [a,b] = 
obj.(f1(), f2())

"Edwin Reynoso" <eorroe at gmail.com>
That's not possible @Eric

On Mon, Oct 26, 2015 at 2:20 AM, Eric Suen 
<eric.suen.tech at gmail.com> wrote:
with

obj.(doSomething(), doSomething2());

you don’t need to introduce new operator.
_______________________________________________
es-discuss mailing list
mailto:es-discuss at mozilla.org
https://mail.mozilla.org/listinfo/es-discuss



_______________________________________________
es-discuss mailing list
es-discuss at mozilla.org
https://mail.mozilla.org/listinfo/es-discuss 




More information about the es-discuss mailing list