Hacker News new | ask | show | jobs
by dathinab 2051 days ago
Btw. there are parts in the standards library which are not suited for learning rust by understanding it.

Not only might your run into some but trivial edge case complexity which add the user of the standard library you don't have to know about at all but you will also run into a bunch of unstable nightly and as such often but that well documented thinks, some of which might never get stabilized.

So if you start learning rust this can lead to unnecessary confusion.

Btw. one of the reasons I like rust is that for a lot of the (more hidden) complexity you get away without knowing it and (important) if you don't get away with it you run into a compiler error. Which is in difference to C++ where a bunch of the (more hidden) complexity has quite a high potential to screw you up if you run into it without knowing about it.

1 comments

Almost every language is like this though.
Sure, I just have seen arguments like:

- go through the standard library to learn rust

- the standard library is always the stile/way you should write your own code

to often in rust related discussion. And while this is actually true for parts of the rust std, it needs to be taken with a big grain of salt.