this post was submitted on 29 Aug 2023
5 points (100.0% liked)

Programmer Humor

32415 readers
311 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
top 4 comments
sorted by: hot top controversial new old
[–] [email protected] 0 points 1 year ago (1 children)

May I introduce you to Neovim? It has Lua. Learn Lua now.

[–] [email protected] 0 points 1 year ago (1 children)

i like my arrays starting from 0 thank you

[–] [email protected] 0 points 1 year ago (1 children)

I like my arrays iterable, that’s all I need to know. No matter if the index is 0, 1, 'foo', or a serialized array (oh wait, no, that’s PHP).

[–] [email protected] 1 points 1 year ago

That's not an array, that's a string.
Someone is converting an array to a string and is using that as key.

A lot of languages could do it, and none of them should.