Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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.



This. The bizarre way nils work in Go is completely over my head.


Nil receivers are such a thing to have




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: