BTF Measurements

Rick Waldron waldron.rick at gmail.com
Wed Mar 14 06:37:43 PDT 2012


On Wed, Mar 14, 2012 at 9:26 AM, Herby Vojčík <herby at mailbox.sk> wrote:

>
>
> 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<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 );
>
> }
>


Oh, right, gotcha - because I was following the "tri-lambda" concept that
David Herman posted here: https://gist.github.com/2011902

If I have time today, I will write an alternate version with Allen's syntax

Rick



>
>  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.
>>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120314/703bf8fa/attachment.html>


More information about the es-discuss mailing list