Hacker News new | ask | show | jobs
by nicoburns 469 days ago
> This applies to all languages with nil. The alternative being options (like ocaml)

It actually doesn't. Languages like Kotlin, C# and TypeScript special case null in the type system and allow you to specify whether or not a given type should include null or not.

1 comments

This. The bizarre way nils work in Go is completely over my head.
Nil receivers are such a thing to have