3 ms·
J has a big focus on array manipulation, the libraries in Rust for arrays provide implementations of the Add trait, so I’d disagreed that it is not “idiomatic”
by DougBTX 7y ago
J has a big focus on array manipulation, the libraries in Rust for arrays provide implementations of the Add trait, so I’d disagreed that it is not “idiomatic” https://docs.rs/ndarray/0.13.0/ndarray/struct.ArrayBase.html#impl-Add%3CB%3E https://docs.rs/ndarray/0.13.0/ndarray/struct.ArrayBase.html...
- inimino 7y agoWell yes, but ndarray is a library, which is what I said. You certainly don't get this "for free" in the language, which means you aren't forced to think this way as a beginner in the language, which is why libraries like ndarray generally have a learning curve, in whatever language you find them. In J you have to get over that learning curve much earlier, because, as you said, the language is focused on it. (Which is the point the article is making, about how J changes the way you think. If you were writing an article about how Rust changes the way you think, I don't think you'd mention ndarray.)