Don’t know about Julia, but your probably writing matlab “wrong” if you’re using indexes. (I’ve never used matlab correctly, but its not really my field). Its always confusing though.
Julia embraces it. It’s intended to be used as a general-purpose scripting language focused on data/numerical analysis with parallel computing baked in. So indexing is a core part of its syntax. And since it caters to mathematicians, they began with indexing to start from 1 for familiarity. (Eventually they added support to define if your code has indexing starting from 0 or 1.)
R for my stats class really threw me off. Syntax was kinda comparable to Python but the way in which you can assign data to an object (which I think was both possible via index or dot-operator) meant I had to “forget” some things to not be lost when reading a TA’s example.
In summary, I’ll stick with Python/C/C++/Rust and leave Matlab/R/Julia to the mathematicians.
Gosh I couldn’t get used to that in Julia. Threw everything off that semester.
Don’t know about Julia, but your probably writing matlab “wrong” if you’re using indexes. (I’ve never used matlab correctly, but its not really my field). Its always confusing though.
Julia embraces it. It’s intended to be used as a general-purpose scripting language focused on data/numerical analysis with parallel computing baked in. So indexing is a core part of its syntax. And since it caters to mathematicians, they began with indexing to start from 1 for familiarity. (Eventually they added support to define if your code has indexing starting from 0 or 1.)
R for my stats class really threw me off. Syntax was kinda comparable to Python but the way in which you can assign data to an object (which I think was both possible via index or dot-operator) meant I had to “forget” some things to not be lost when reading a TA’s example.
In summary, I’ll stick with Python/C/C++/Rust and leave Matlab/R/Julia to the mathematicians.