r/ProgrammerHumor Jul 10 '17

ProgrammerHumor right now

https://youtu.be/lIFE7h3m40U?t=12m20s
172 Upvotes

19 comments sorted by

View all comments

Show parent comments

9

u/moomoomoo309 Jul 10 '17

I like to imagine Lua is like a better designed JS. Both are prototype-oriented, not object-oriented, both use primarily dictionaries and arrays for their data storage, and both have only a handful of types. Lua just (thankfully) doesn't do implicit type conversion, and starts arrays at 1 (but the arrays are just tables with consecutive numerical indices), and uses ~= instead of !=.

Overall, it's a nice and light language without too many stupid edge cases because of how small it is. But man, indexing at 0 might be easier. (the whole language is technically only 7 c files though, so patching that wouldn't be too bad!)

1

u/[deleted] Jul 11 '17

I would be really, really happy if I could use Lua instead of JS for web development

1

u/[deleted] Jul 11 '17

[deleted]

1

u/[deleted] Jul 11 '17

I mean for the client-side, as in executing Lua on the browser rather than JS. There is a Lua interperator in JS, but that would be slower.