Rick Waldron wrote:
On Mar 14, 2012, at 4:17 AM, Herby Vojčík<[email protected]>  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.
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to