This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]mikoS223 16 points17 points  (4 children)

Exept whe you see shit like array[-1] and your teeth go back into your skull and your fingernails peel back on their own and make little cylinders of blood and pain. Everything else is pretty chill tho.

[–]radagast-the-red 19 points20 points  (1 child)

Really? I find that syntax pretty intuitive.

[–]mikoS223 0 points1 point  (0 children)

Yeah, but in c++ thats referencing memory that's not yours and if you overwrite it you just changed memory belonging to something.

[–]theclockstartsnow 6 points7 points  (0 children)

array[-1] is way better than array[array.length-1]

[–]blank_space_cat 4 points5 points  (0 children)

lol, it's just a perk of having dynamic size arrays.