Re:Std::visit is everything wrong with modern C++ (2017)
by steveklabnik on Saturday December 05, 2020 @03:21PM
(#25317921)
You're welcome. I sorta kinda agree on the safety thing; I wrote a blog post that kind of kicked off a whole discussion about this a while back; https://brson.github.io/fireflowers/ is a really beautiful summary of all of that.
Re:Std::visit is everything wrong with modern C++ (2017)
by DerDangDerDang on Saturday December 05, 2020 @05:07PM
(#25318873)
That was a wonderful read.
After 20 years of C++ and about the same number of hours of Rust, Rust makes me feel like Fire Mario because when I come to do a strict correctness and memory efficiency pass after writing something - it’s already correct. I suspect this will have a compound interest-like effect, similar to good code coverage empowering change.
FWIW I think the Rust community has done itself a disservice by focusing on the safety benefits. Const by default and move by default are much bigger deals in the day to day coding experience, but it’s hard to get across just how awesome they are.
That book looks great, thanks - should take me through a few corners I’ve yet to meet while keeping me entertained.