|
|
|
|
|
by eigenspace
92 days ago
|
|
This argument over indexing conventions is so tired. I have yet to hear a good argument for why the answer to "How do I get the third element of this array?" should be `arr[2]` > Both R and Julia have their core functions written in C++. Absolutely nothing new. What on earth are you talking about? This is at least a novel claim. Some deep parts of julia's compiler are written in C++ but that's about it. Nearly everything in the language is written in julia itself. The only significant foreign codebases in the language are * LLVM
* OpenBLAS
* LibUV
all of which are extremely reasonable foreign things for a language to use (though we are gradually moving more and more of these things to the julia side) |
|
Ask a carpenter.
To get to the third pigeonhole in a racked series of one foot per pigeonhole unit you literally offset two feet from the origin.
In C (of course), arr[2] works as well as does 2[arr] as both are literally just syntactic sugar for arr+2
ie. The third pigeon hole begins after passing two whole pigeonholes.