3 ms·
> This applies to all languages with nil. The alternative being options (like ocaml) It actually doesn't. Languages like Kotlin, C# and TypeScript special cas
by nicoburns 2y 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.
- notpushkin 2y agoThis. The bizarre way nils work in Go is completely over my head.
- styluss 2y agoNil receivers are such a thing to have