lua-users home
lua-l archive

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


On 2 June 2010 15:15, Petite Abeille <petite.abeille@gmail.com> wrote:
>
> On Jun 2, 2010, at 6:22 PM, Stuart P. Bentley wrote:
>
>> If you find you're having a lot of trouble with functions taking the wrong number of parameters, consider using this:
>
> Hmmm... perhaps this is just a lack of imagination on my side, but... how would superfluous parameters ever matter?

Like missing parameters, superfluous parameters often indicate
call-site bugs. In the case that a function wanted to allow
superfluous parameters, it could use '...'.

    henk