logoalt Hacker News

lenkiteyesterday at 8:20 AM1 replyview on HN

Delegate all `nil` and bad input checks to a validation framework and use it in all your constructor functions.


Replies

FridgeSealtoday at 8:06 AM

I’ll go you one better: integrate it into your language and have the compiler enforce it for you!