6/20/2026 at 8:20:39 AM
Delegate all `nil` and bad input checks to a validation framework and use it in all your constructor functions.by lenkite
6/18/2026 at 10:36:32 AM
by ingve
6/20/2026 at 8:20:39 AM
Delegate all `nil` and bad input checks to a validation framework and use it in all your constructor functions.by lenkite
6/18/2026 at 10:39:14 AM
What about wrapping nil in a Maybe or Option type?by turtleyacht
6/18/2026 at 1:41:39 PM
This is good advice for humans: they can quantify to decide "too many nil checks" or not. But it's not good for agentic coding, which we're entering the age of. Although agents are the worst they'll ever be right now, they're never going to be great at quantifying too many nil checks. I think we'll have to get used to far more nil checks than even bad programmers put in. But that doesn't matter to agents, they've got infinite attention spans, no cognitive bias and large working memories. Sonn we'll see no nil checks.by bediger4000