News for hackers. Stuff that matters.
Re:C++26: A Placeholder with No Name by flohofwoe on Sunday January 12, 2025 @05:08AM (#42672483)
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

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.

There are no comments on this comment yet.