Hacker News
points by throwaway81523 3 days ago | 0 comments
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.
[–] steveklabnik 3 days ago
Those are evaluated at compile time, C++’s aren’t guaranteed to be, they’re runtime checks.
[–] throwaway81523 3 days ago
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.