News for hackers. Stuff that matters.
Re:Switching from C++ to Rust by whyever on Tuesday March 14, 2023 @05:26AM (#35149035)
I disagree. Whenever there is a null pointer in the API, you could (and probably should) be using a sum type instead.

Sum types are not novel (Standard ML had them 40 years ago), but I think they are indeed a game changer.

Re:Switching from C++ to Rust by blub on Saturday March 18, 2023 @12:59PM (#35210813)
You’ve described std::optional, a special case of std::variant.