[Proto-Scripty] Re: curry Misunderstanding?

2008-10-31 Thread T.J. Crowder
Hi, Have you, by any chance, done any memory tests on this, T.J.? Nothing rigorous or replicable/quotable. Reading between the lines, you're thinking about premature optimization, aren't you? :-) One does definitely need to beware of PO, but any time you're creating a closure that's going to

[Proto-Scripty] Re: curry Misunderstanding?

2008-10-30 Thread kangax
On Oct 30, 2:30 am, T.J. Crowder [EMAIL PROTECTED] wrote: The lost context is easily fixed: sendState(email, $F('save-comments'), sph.fire.bind(sph).curry(doneEvent)); bind() accepts additional parameters for the function, so you don't need the curry:     sendState(         email,