News for hackers. Stuff that matters.
Re:Switching from C++ to Rust by the-smug-one on Monday March 13, 2023 @08:52PM (#35145712)
Why does the members be lazily init:ed?
Re:Switching from C++ to Rust by cornstalks on Monday March 13, 2023 @09:00PM (#35145817)
If the data types have constructors and/or destructors that have side effects then it has to be lazy. Otherwise IMO it's not really behaving like a sum type.