Skip to content

Comment on Rust vs. Go: Battle for the Back Endparent

Comments

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

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.