lua-users home
lua-l archive

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

On 04/09/16 04:25 PM, Egor Skriptunoff wrote:

    We should add a number prefix for dozenals in Lua, with floating
    point, preferably

Lua is too minimalistic.
We do not even have binary numeric literals in Lua.

In my experience, hexadecimal is good enough. I'd much rather write long bitflags as hexadecimal than as 64 characters long strings.

Hexadecimal is also cleaner. For example the programming language I'm making[1] uses hexadecimal, even tho it works on bits:

You write '3f', not '301111', 'ff' not '331111' etc. The hexadecimal looks cleaner, even if a bit harder to remember.


Disclaimer: these emails may be made public at any given time, with or without reason. If you don't agree with this, DO NOT REPLY.