News for hackers. Stuff that matters.
Re:Names are not type safety (2020) by andyferris on Sunday August 03, 2025 @11:04PM (#44781782)
These are possibly situations where I’d resort to a panic on the extra branch rather than complicate the return type.

Providing a proof of program correctness is pretty challenging even in languages that support it. In most cases careful checking of invariants at runtime (where not possible at compile time) and crashing loudly and early is sufficient for reliable-enough software.

There are no comments on this comment yet.