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

I'm pretty sure if people are willing to adopt a new language, they will be open minded enough to accept 1 indexed arrays.


History has shown the exact opposite.


Examples?


You just have to look at the most popular programming languages on 2018.

They're all 0-based (with maybe R as an exception, but R is a niche language. If that's what Julia aims to remain -- their loss).

The folks who designed these languages knew how not to alienate their future market.


Matlab is 1-based. That's what the vast majority of scientific programmmers still use. Worrying about 0 vs 1 is just useless bikeshedding, really. I've done lots of index heavy operations in Julia and in Python, and it's easy either way.


I think majority of scientific programmers use Python/C/Numpy stack over Matlab


No, not true at all. Engineering and academia are still solidly Matlab. You have to keep in mind that these people are not programmers, they are used to Matlab, and they don't want to learn another language. It's just a small proportion of new faculty and some grad students that use Python. Statistics is all R.




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

Search: