lua-users home
lua-l archive

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


Myself, I don't really see the advantage to this sugar.

I think it's shorter, but less clear.

My 10c.

On 9/19/06, mitchell <mforal.news@gmail.com> wrote:
Hi,

> function f(a or my_default_a, b or my_default_b, c or my_default_c)
>
> end

What about passing false intentionally?

function f(flag or true) ... end

f(false)

-Mitchell;




--
It's Like This

Even the Samurai
Have teddy bears
And even the teddy bears
Get drunk