4 ms·
I would love to have this, but Lua not Python.
by MomsAVoxell 9mo ago
I would love to have this, but Lua not Python.
- moffkalast 9mo agoMathematicians don't build GUIs, and nobody else can stand starting their arrays with 1.
- dlcarrier 9mo agoLua also let's you start arrays at 3.
- zimpenfish 9mo agoAs does Perl with `$[`[0][1] [0] "This variable stores the index of the first element in an array, and of the first character in a substring." [1] With the caveat: 'As of Perl v5.30.0, or under "use v5.16", or "no feature "array_base"", $[ no longer has any effect"'
- ErroneousBosh 9mo agoYou can start your arrays in Lua at 0. Conventionally you don't, but you can.
- pjmlp 9mo agoPlenty of languages use either 1 as base or flexible array indexes.
- moffkalast 9mo agoAnd we can make fun of them equally, there's enough mocking to go around.
- shakna 9mo agoI wonder how hard to port this to eLua would be? The bigger problem is probably packing. Pip can work fine with MicroPython. LuaRocks can be a pain, even on desktop.