logoalt Hacker News

bluGill • yesterday at 11:12 PM • 1 reply • view on HN

And I really do not like the idea that some third-party library that happened to use decides that I can't turn off a expensive check that would never be triggered in the real world.

Now if the contract was instead, it must be proved at compile time I'd be for that. I don't know if theorem checkers are good enough to pull that off.


Replies

coliveira • today at 12:39 AM

I don't have a problem with this, library writers are free to design any way they want. If this requires expensive checks, that's a library design choice, and users are free to choose a different library if that's not what they want.