theFibonacciEffect@feddit.de to Programmer Humor@lemmy.ml · 1 year agovimfeddit.deimagemessage-square9fedilinkarrow-up138arrow-down11
arrow-up137arrow-down1imagevimfeddit.detheFibonacciEffect@feddit.de to Programmer Humor@lemmy.ml · 1 year agomessage-square9fedilink
minus-squareJumuta@sh.itjust.workslinkfedilinkarrow-up0·1 year agoi like my arrays starting from 0 thank you
minus-square𝘋𝘪𝘳𝘬@lemmy.mllinkfedilinkarrow-up0·1 year agoI 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).
minus-squareFonzie!@ttrpg.networklinkfedilinkarrow-up0·1 year agoThat’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.
i like my arrays starting from 0 thank you
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).
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.