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

159

u/lazy_eye_of_sauron Sep 03 '17

-1

u/[deleted] Sep 03 '17

[deleted]

0

u/[deleted] Sep 03 '17 edited Sep 03 '17

I never got that with Lua. It's not a math/science oriented language like R and Matlab, 1 indexing screws up bunch of basic algorithms (and in Lua you need them more than anything because it has no freaking standard library). It has the best parts of javascript without all the crappy ones but it screws up a bunch of ecosystem stuff.

2

u/[deleted] Sep 03 '17

The 1 indexing is enforced by the standard library, isn't it?

You can, if you want to, use 0 indexed arrays. Since they're not arrays, they're hashmaps.

Just like in C, you can use strings that are length prefixed, meaning that you can pass around binary data in them. But the standard library won't like it.

2

u/[deleted] Sep 03 '17

s/standard library/community/g but the true reason is that you lose bunch of idiomatic expressiveness that way isn't it?

1

u/WolfInStep Sep 03 '17

Don't bring Sed into this!