Andrew Dupont wrote: > I like the idea of Function.prototype.curry. It goes hand-in-hand > with Enumerable and is useful for stuff like argument rearranging. > > I feel like Function.prototype.rcurry is an edge case, but I might be > in the minority there.
I do too. But if we have one we might as well have the other. Also, as far as naming goes, many people won't know what curry means and it's also not particularly descriptive of what it does. Perl6 is planning on calling it 'given'. Foo.func.given(1, 2); > While we're on the subject, I proposed Function.prototype.defer in > Campfire last week, so that instead of... > > window.setTimeout(Foo.bar.bind(Foo, "baz", "thud"), 1000); > > ...you can do... > > Foo.bar.defer(1000, "baz", "thud"); > > Feels more OOP. Plus it'd correct scope automatically. I like it. -- Michael Peters Developer Plus Three, LP --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype: Core" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en -~----------~----~----~----~------~----~------~--~---
