lua-users home
lua-l archive

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


On Mar 14, 2018, at 5:33 PM, Gavin Wraith <gavin@wra1th.plus.com> wrote:

> 
> It seems to me that the proposed syntax "x = undef" looks like
> an assignment of a value. Why not "x undef" or "undef x"? Or have
> I missed that discussion? Sorry for the noise if I have.
> -- 
> Gavin Wraith (gavin@wra1th.plus.com)
> Home page: http://www.wra1th.plus.com/
> 

what is so bad about the old syntax x = nil ?

false were added in lua to "store" nil in table, there is no need for undef.

I am curious, is there an example where undef is truly needed ?