3 ms·
Also reading the source code for the standard library can be illuminating. Note that some languages have pretty subpar standard libraries. This might have chan
by adamnemecek 5y ago
Also reading the source code for the standard library can be illuminating.
Note that some languages have pretty subpar standard libraries. This might have changed but ~10 years ago the Ruby standard library really left some things to be desired. I don't recall the details but I wasn't a fan of parts of it.
On the other hand, the Rust standard library is top notch.
- einpoklum 5y ago> Also reading the source code for the standard library can be illuminating. That's a lot more hit-and-miss. On one end of the spectrum, you have Java, where all of the lower-level, nitty-gritty work happens within the JVM anyway; and on the other end of the spectrum you have C++, where it's "turtles all the way down" almost, with lots of repetitiveness, ugly hacks to within the library to help the user avoid ugly hacks in their code, a big bunch of preprocessor macro definition checks for meeting innumerable compatibility requirements for different versions of the language standard on different platforms, and so on. Yes, you will learn from it, but it will be painful.