shortcuts for defining block-local private names, plays nicely with @foo syntax

Axel Rauschmayer axel at rauschma.de
Mon Jan 23 01:26:56 PST 2012


>> function Point(everyone, secret) {
>>   .everyone = everyone;
> 
> You're requiring manual semicolon insertion before lines like this. Consciously?


Sight. Right. Not a good idea, then.

An important consideration is that eliminating `this` will increase the grawlix-factor of JavaScript (I always liked the explicit `this`, especially compared to Java).

-- 
Dr. Axel Rauschmayer
axel at rauschma.de

home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120123/a9356b24/attachment-0001.html>


More information about the es-discuss mailing list