Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> (most of us) will tell you that it doesn't really make much of a difference in practice.

I disagree, I had to slice bitfields in Ethernet packets in Lua and I hated 1-based indexing very much!

IMHO languages should either have 0-based indexing or any-index (as Ada does) unless you really wants to be a "mathematic only language" which is why I think that it's OK for Julia to be 1-based but not OK for Lua.





Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: