lua-users home
lua-l archive

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


On Sun, Jan 9, 2022 at 10:03 AM Flyer31 Test wrote:
As I stated in my post yesterday, I am quite convinced that these
operators ++, **, // will be only used by about 1% of Lua programmers,
and only by specialists

Specialists deserve comfortable programming too :-)
I'd prefer some sort of @+, @-, @/, @%, @//, @^, @= for integer operators.
The integer attribute (symbol "@") may be changed to some other symbol (backslash, dollar).
"x @= y" means "x = floor(y)", it is shorter than "x = y // 1"