lua-users home
lua-l archive

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

I prefer 2, since it seems closer to the meaning and therefore more intuitive. But does it really need a patch?

Yea, it seems 2 works right now ;)

On Apr 20, 2013 11:41 PM, "Dirk Laurie" <> wrote:
    function f(x,y=0)
    function f(x,y or 0)

to mean

    function f(x,y) y=y or 0

Neither would break existing code.

Which of the above should I choose to implement as a patch?