[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: How do you cope with 2 or more optional parameters?
- From: Petite Abeille <petite.abeille@...>
- Date: Fri, 18 Dec 2009 19:32:29 +0100
On Dec 18, 2009, at 7:05 PM, Michal Kolodziejczyk wrote:
> This is interesting... That would be kind of dataflow programming:
Method chaining?
http://martinfowler.com/dslwip/MethodChaining.html
> Here is an example (but this assumes some form of object oriented programming):
local function f( t )
print( t[ 1 ] )
return f
end
f{1}{2}{3}
> 1
> 2
> 3