[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Proposal: table.sort returning the sorted table.
- From: Tony Finch <dot@...>
- Date: Mon, 11 Apr 2011 14:25:08 +0100
Henning Diedrich <hd2010@eonblast.com> wrote:
> I heard in some other quarters it's called schönfinkeln and is all the hype.
Is this using Schönfinkeln to mean something different from Currying?
Method chaining like o:m1():m2() is not related to currying because each
method returns the object so that further actions may be performed on it,
whereas with a curried application f()()() the function returns a
different more specific function.
It is good OO library design for a method that modifies an object in
place to return its self.
Tony.
--
f.anthony.n.finch <dot@dotat.at> http://dotat.at/
Viking, North Utsire, South Utsire, Forties, Cromarty, Forth, Tyne, Dogger,
Fisher: Southerly or southwesterly 4 or 5, veering westerly or northwesterly 5
to 7, occasionally gale 8 later in South Utsire and Fisher. Slight or
moderate, occasionally rough in Viking, South Utsire and Fisher. Rain for a
time, then showers. Moderate or good, occasionally poor at first.