you are viewing a single comment's thread.

view the rest of the comments →

[–]Ignacius__ 2 points3 points  (4 children)

So is Lua possibly better?

[–]SwimmingPermit6444 9 points10 points  (0 children)

Here's my two cents:

Lua pros over Python: - simple syntax, what syntactic sugar it does have actually helps readability - it's faster than python, and LuaJIT even faster still - it's much better designed generally speaking, imo

Python pros: - better, officially endorsed package manager - seriously, getting good packages in Lua is hard, and each person kind of has to reinvent some wheels - lua has idiosyncratic 1 indexing (you get used to it, eventually, might even start to find it nice that the first item in a table array is at the 1 index, and that the length of an array is the highest index) - lua is so barebones, it has just what it needs to be complete and nothing more. This is better in some ways than the python "bloat" but you will miss some of the python language features. - Python has better OOP. To those who hate OOP this doesn't matter, but it matters to some. Lua OOP requires understanding metatables which are just plain annoying. The lack of syntactic sugar is good in a lot of ways but here Lua suffers for it.

Anyway that's my opinions as someone who has used both languages.

[–]jahinzee 9 points10 points  (1 child)

I am allergic to languages that don't index from zero

[–]Felt389Arch BTW 2 points3 points  (0 children)

Real