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

The biggest thing that keeps me from using Julia rather than Python for math prototypes is that it uses one-based indexing. I go back and forth between these prototypes and my C++ codebase, and the mental gymnastics to switch from 0-based to 1-based makes Julia a non-starter for me. I prefer Julia over Python other than that one issue, and the lower availability of tutorials, etc. for Julia.



Index all your arrays with from_offset(n)

def from_offset(n: int): return n+1

Well-typed (or sightly-better-typed) programming ftw.




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

Search: