3 comments

  • zarzavat 15 minutes ago
    I have no particular opinion on contracts per se, but I do think that the C++ committee is procrastinating by focusing on niche features like contracts instead of dealing with the urgent issues (namely packaging and memory safety) where C++ is losing to Rust.

    The rejection was a moment for them to reevaluate their priorities but it doesn't seem that they've gotten the message.

    • guipsp 7 minutes ago
      Contracts are part of the memory safety story in c++
  • grg0 18 minutes ago
    > pre<std::contracts::controls::enforced>(x > 0)

    Ho-lee, guys. We just needed pre(x > 0)

    • andrewjf 13 minutes ago
      Yeah but why wouldn't "x" be a type that could only represent positive integers?
      • grg0 9 minutes ago
        I would like Ada-style integer types too, but I don't strictly know how those are implemented. Are you suggesting invariants should also be given at the type level?
      • kevin_thibedeau 9 minutes ago
        They really should just copy Ada rather than this whizbangery.
  • npalli 18 minutes ago
    LOL. The C++26 gloom and doom last month was something else. C++ was finished (not just C++26, mind you), and everyone should pack their bags and move to Rust.

    Meanwhile, back in reality, the committee did its job: it addressed the NB comments, kept contracts, and C++26 is back on track. Imagine that.