logoalt Hacker News

usrnmtoday at 7:30 AM1 replyview on HN

Also known as contract programming vs. defensive programming. This argument is very old, is not specific to golang, and I have found myself on both sides at different points in my carreer.


Replies

Sharlintoday at 9:09 AM

Fortunately we have type systems to encode many contracts at compile time, including stuff like optionality. Certainly no modern language would still repeat Hoare’s "billion dollar mistake"? Right? …Oh.

show 1 reply