lua-users home
lua-l archive

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


On Sun, Jul 14, 2013 at 10:55 AM, John Hind <john.hind@zen.co.uk> wrote:
> This looks good, but now integers are "official" how about considering
> making my 'powerpatch' for binary constants official too? ( For example
> local x = 0b1001_0001 - support of underscores here is particularly useful
> to break long bitmaps into fields - they're just for documentation and get
> ignored).

+1. I think using underscore '_' in long numbers (binary or otherwise)
can improve readability. IIRC, Ruby allows '_'  inside any number and
simply ignores them when converting it to internal representation.

--Leo--