lua-users home
lua-l archive

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

Dirk Laurie <> wrote:

> Does a patch that allows the clumsy idiom
>    function(a,b,c)
>      a = a or 0
>      c = c or 1
> to be replaced by
>    function(a=0,b,c=1)
> already exist?

I don't know... but default and optional parameters are on my todo list!

I am also adding function overloads to go along with my type system.

Good luck finding a patch if one exists, if not, I will have one eventually!