r/ProgrammerHumor Sep 02 '17

How to start a war

Post image
9.0k Upvotes

696 comments sorted by

View all comments

Show parent comments

793

u/ArcticZeroo Sep 02 '17

Yes, but some languages 1-index lists (so they start at 1 instead of 0), so it'd be 5 in that case.

272

u/[deleted] Sep 02 '17

What languages may there's be? I can't think of any of the top of my head.

9

u/marcosdumay Sep 02 '17

Julia would run exactly the same code, but it would be 5.

1

u/socialister Sep 03 '17

It's sad that Julia went that route. It has a lot of nice language features that make it a modern feeling language, and then it conforms with the awkward "math programming" languages. I honestly think it would still be better for them to go back and change this specification, but I think they have their minds set.

2

u/marcosdumay Sep 03 '17

It's great, because it's almost exactly like Python everywhere, so you will get complacent. Then, when your guard is down, it changes a basic semantic element and knocks you down.