News for hackers. Stuff that matters.
Re:Contracts for C++ (DbC) [pdf] by AlotOfReading on Thursday November 14, 2024 @09:01PM (#42143311)
C++ contracts as currently designed can execute 4+ times per call to do full checking. That gets expensive quickly.
Re:Contracts for C++ (DbC) [pdf] by rramadass on Friday November 15, 2024 @12:07AM (#42144104)
But they also give you 4 different evaluation semantics (ignore, observe, enforce, quick_enforce) to tweak as needed. You don't need to do full checking everywhere and always.