I immediately started working on implementing my infinite compression algorithm but ran into some problems. This is what I have so far
a = {1,2,3} print(a[0]);
When I try to run this it prints nil? WTF???
Name:
Anonymous2015-05-17 1:35
>>1 That means it's working. In Lua, the zeroth element always represents a compressed version of the object using infinite compression. You can override this behaviour by setting the value explicitly but it is against the style guide.
Name:
Anonymous2015-05-17 4:33
>>1 I don't understand how the creators could possibly have thought 1 based indexing in an embeddable language was a good idea. There's a lot of things in Lua that just feel like creating differences for difference's sake. It's a blot on an otherwise decent language.
>>4 Even with all its flaws, it's still a better language than Python. The latter succeeds more for the usefulness of its standard library than by any virtue of the language itself.
Name:
Anonymous2015-05-17 21:21
I hate python so much. So very much!
Name:
Anonymous2015-05-18 0:40
>>8 But Perl is better than Python and Lua so it's not really worth discussing.
Name:
Anonymous2015-05-18 1:15
>>10 Does perl have proper tail calls? Not implying it's necessary for it to be good, just curious.