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

