Re:Why Python uses 0-based indexing. It's because of slices
by fdej on Wednesday October 23, 2013 @05:53PM
(#6601999)
Lua, Julia, Mathematica, Matlab (ok, not so respected as a language)
[ Parent
| on HN ]
Re:Why Python uses 0-based indexing. It's because of slices
by atondwal on Wednesday October 23, 2013 @06:56PM
(#6602330)
Mathematica is LISP, so it's really 0-based indexing, where the first element is the function you're applying. All the sugar and literals are made to hide this, but you can code like you're dealing with a real LISP.
Re:Why Python uses 0-based indexing. It's because of slices
by hcarvalhoalves on Wednesday October 23, 2013 @06:20PM
(#6602143)
I've found Matlab (the language) great for it's intended purpose.
Re:Why Python uses 0-based indexing. It's because of slices
by yoodenvranx on Thursday October 24, 2013 @02:45AM
(#6603730)
In my opinion Matlab the language sucks even for its intended use. What makes the complete package arely acceptable to work with is the environment, the documentation and the included libraries.
I did 5 years of image processing in Matlab but then switched to Python 4 years ago. One of the best choices I did in my programming career.
Re:Why Python uses 0-based indexing. It's because of slices
by hcarvalhoalves on Thursday October 24, 2013 @12:20PM
(#6606113)
Interesting. I make a living developing backend systems in Python, but picked up Matlab (Octave) for machine learning, and really enjoyed doing linear algebra on it. For PoCs and general experimentation I find it more amenable than messing with Numpy. Of course it isn't great for building complete systems, but for self-contained programs - which I believe is the intended purpose - it works pretty well.