Re:Nelua Programming Language
by newobj on Tuesday August 24, 2021 @05:51PM
(#28295432)
Well, for starters, the arrays are 0-based, so ...
[ Parent
| on HN ]
Re:Nelua Programming Language
by pull_my_finger on Tuesday August 24, 2021 @05:57PM
(#28295490)
Arrays are 0 based, when tables are implemented they will be indexed from 1. I believe one of Nelua's design goals is that unaltered Lua code will be valid Nelua code.
>Arrays are 0 based, when tables are implemented they will be indexed from 1
Really?? I can see all the "off by one" bugs already! I wonder if a tool to convert Lua to Nelua wouldn't be a better idea than making the language incoherent.
Or maybe always make the programmer select the offset like Ada does.