[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: Alexander Gladysh <agladysh@...>
- Date: Fri, 18 Dec 2009 21:07:37 +0300
>> Right... in Lua... named parameters would be a table:
>> f( { a = b, c = d, ... } )
> Which is the main reason why parentheses around table arguments are made
> optional:
> f{ a=b, c=d }
I've always thought that the main reason was to support declarative
syntax, derived from SOL.
...But, perhaps, these are two different angles on the same thing.
Alexander.