Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@olback Your Program is amazing and I love you for it. Put it on Pastebin please.
-
olback107987y@PrivateGER https://github.com/olback/...
That is not the latest version cuz I can't use pastebin put due to a 24h limit in CC :( -
olback107987y@PrivateGER There is a pastebin limit so that you can't make spam bots with CC. It's like 20 pastebin put/gets per 24h/server.
-
-- Note: Arrays start at 1 in this shitty language. Fuck me. Took way to loong for me to realize that
-
@dfox the god of the site has thus spoken, its now a sin to shit on Lua everyone. (Yeah I agree its quite a good scripting language, OpenResty everyone?)
-
lolnick447yComputer Science professors: "mathematically, arrays should start at 1"
Me: "lol. No." -
The first time. I ever had contact with Lua was on a gamejam. The team I had picked was Lua fans, using löve2d as a framework.
One of them told me "it's. Like Javascript, if you take only the good parts." three days later my verdict was "its like Javascript if you take all the bad things"..
Sometimes I still have nightmares in which I see metatables over metatables.. just to emulate something resembling oop.. -
But it makes sense! First element have index 1, second have 2, etc. It made sense back in the old days to start with zero, because then you can have 256 elements in an array instead of 255. But now, in a language that uses goddamn floats for indexes anyway? Why bother?
-
Floats as Index is a feature which God requested. Basically he uses it to determine which devs deserve to go to hell - those who use it.
LUA ARRAYS START AT 1.
I HATE MY LIFE.
random