lua-users home
lua-l archive

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


> On Nov 20, 2013, at 4:10 AM, Daurnimator <quae@daurnimator.com> wrote:
> 
> How about -0? (negative 0); you also may want to consider nan.
> 
> In general, I find these sort of modifications fun to experiment with; 
> e.g. I've been thinking of a javascript->lua translator, but semantics around truthyness are hard to get correct.
> 
> But be careful: please never market your modified language as lua (try to even avoid mentioning it): your users will come to us for help, and we will be very confused.

Good questions, I will look into how those work. Negative zero is an odd thing, isn't it? LOL

I would probably want to make NaN work more like nil, as it is also a non-numeric special case.

Don't worry, I have no plans to market my language as Lua. It identifies itself as "Lunia 1.0 (like Lua 5.2)" at the current moment, which is reasonable as it does have Lua as the core. If I ever get to the point of seriously releasing it with my 3D engine I would make my own mailing lust for Lunia related discussions! ;)

~pmd~