11 ms·
Just look at the Option type and all the methods on it, the whole concept of optionals should be built into the language, not stdlib: https://doc.rust-lang.org
by flohofwoe 2y ago
Just look at the Option type and all the methods on it, the whole concept of optionals should be built into the language, not stdlib:
https://doc.rust-lang.org/std/option/enum.Option.html https://doc.rust-lang.org/std/option/enum.Option.html
Same with Result, Box, Rc, Arc, Cell, RefCell, (plus even more *Cells), Iter, ... the resulting 'bread crumbs syntax' is IMHO the main reason why typical Rust code is so hard to read. This philosophy to push what should be language features into the stdlib is the same as in C++ (and IMHO one of the main problems of C++), it's probably also a reason why both languages are so slow to compile.