BTF Measurements

Herby Vojčík herby at mailbox.sk
Wed Mar 14 06:26:15 PDT 2012



Rick Waldron wrote:
> On Mar 14, 2012, at 4:17 AM, Herby Vojčík<herby at mailbox.sk>  wrote:
>
>>
>> Rick Waldron wrote:
>>> Kevin,
>>>
>>> Over the weekend I applied David Herman's new tri-lambda syntax
>>> to Popcorn.js to see how it would look and feel:
>>>
>>> https://github.com/rwldrn/popcorn-js/compare/tri-lambda
>> Why didn't you also apply 'method' syntax in 'name: () -> { ... }'
>> scenarios, it will probably be used in this cases rather then
>> manuallyputting the function there (even in shorter syntax)?

I meant here, use allen's method syntax instead of () -> { ... }

> Pretty sure I did - did I miss some?

Lots, like

error: ( msg ) -> {
     throw new Error( msg );
}

which should be

error (msg) {
     throw new Error( msg );
}

>> It should not be forgotten then functions per se will only be used
>> in the places where they are not methods put into class / object
>> literal.


More information about the es-discuss mailing list