Hacker News new | past | comments | ask | show | jobs | submit login

I actually prefer the 0 indexing of python. Systems code (c/c++ etc.) already uses 0 based indexing. So it is nice that when you do data science the convention stays the same.



But Fortran, R, Matlab and other tools in the domain use 1 indexing...


Does it actually matter at this point? I write off by one errors all the time in JavaScript and I usually spot them immediately. I’ve written Julia and R in the past and I found it really easy to switch between contexts, and if I forget, the errors are such that it takes only a few seconds to spot and fix them.




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

Search: