News for hackers. Stuff that matters.
Re:C++26 Disapproved by throwaway81523 on Wednesday November 04, 2026 @04:22PM (#50371741)
I don't understand the controversy or objections, though maybe I'm missing something. This looks like Ada-2012 contracts which evolved from SPARK Ada going back to near-ancient times. They're well accepted I thought. The idea is to standardize the syntax so that static analyzers can check the contracts, like in Ada. I think Rust is getting something similar. It seems important. Maybe the DIS was rejected because there are still disagreements about some details, ok fine. But rejecting the whole feature sounds counterproductive to keeping C++ relevant. Assuming that last is a good thing, of course.
Re:C++26 Disapproved by steveklabnik on Wednesday November 04, 2026 @04:25PM (#50371788)
Those are evaluated at compile time, C++’s aren’t guaranteed to be, they’re runtime checks.
Re:C++26 Disapproved by throwaway81523 on Wednesday November 04, 2026 @05:57PM (#50372630)
Yes, static checking when available will have to figure into the toolchain so the compiler knows what to do. It's similar with Ada right now.