|
|
|
|
|
by dathinab
1698 days ago
|
|
> To learn a new language, read its standard libraryTo learn a new language, read its standard library Yes, but also no. The standard library is often more complex and uses more advanced features then you often need for most projects. I.e. collections in std are supper general purpose, but if you need to write a collection it's normally specific to the purpose you need it for. I.e. std is the "most" general purpose library you normally find so even if it's written with "KISS" in mind it's still often not so simple. Then it sometimes uses unstable language features you normally can't use (as it's often made "in sync" with the language) and/or optimizations which in most other cases would count as "pre-mature" optimizations. Through without a question you can learn a lot there, you just should be aware of the points above. |
|