lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


2014-08-01 16:48 GMT+02:00 Roberto Ierusalimschy <roberto@inf.puc-rio.br>:
>>  [...] However, I am not delighted
>> by an optional argument preceding a non-optional one. [...]
>
> We do not like it either. Do you suggest any alternative?

The most obvious one is just to swap the last two arguments.
Then a2==nil can mean the same as a2 omitted, as usual in
Lua.