lua-users home
lua-l archive

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


Hi:

On Fri, 7 Jan 2022 at 18:04, Flyer31 Test <flyer31@googlemail.com> wrote:
> I just think that math.tointeger and math.floor are in writing much
> more cumbersome than //1.

I used to think like that, but I've found with the years that //1 is
much more cumbersome to read. And code is ~ WORM.

Currently I try to avoid operators where there are non obvious
interpretations, but YMMV.

> I think "usual users" anyway do all things in float, I have no idea
> why this should restrict you in any way to do calculations in Lua.

It does not, but lack of typing makes it much easier for me to use
another language. In general I do not use lua as a general purpose
language, I just use it when embedding. Bear in mind I've been
programming for more than 40 years and have where to choose.

Francisco Olarte.