Method definitions in classes/objects

Juan Ignacio Dopazo dopazo.juan at gmail.com
Sun Oct 7 08:19:54 PDT 2012


Hi!

When checking what Traceur/TypeScript do when compiling method definitions
I found both convert methods to assignments of an anonymous function.
Traceur changed it recently (see
http://code.google.com/p/traceur-compiler/issues/detail?id=127).

I was under the impression that methods would desugar to a named function
with the same name as the property, but I checked the wiki and there is no
reference to named functions. Has this been discussed? Is there consensus
on anonymous/named?

Thank you,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20121007/6550dc57/attachment.html>


More information about the es-discuss mailing list