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

I find indices starting from zero much easier. Especially when index/pointer arithmetic is involved like converting between pixel or voxel indices and coordinates, or indexing in ring buffers. 1-based indexing is one of the reasons I eventuallz abandoned Mathematica, because it got way too cumbersome.

So the reason why you don't see many people fighting 0-indexing is because they actually prefer it.



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

Search: