News for hackers. Stuff that matters.
Re:Again on 0-based vs. 1-based indexing by renox on Wednesday January 20, 2021 @04:47AM (#25844466)
> (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.

There are no comments on this comment yet.