It has its ups and downs. I assume that this type system enforces in way less Nil checks by making it a bit hard to keep Nil interfaces around.
Ariel Shaqed (Scolnicov)
08/30/2022, 4:35 PM
Yikes! Looks like the type system is broken here: in every other static type system I've seen, references have types not just values. So this comparison should either have included an implicit cast (and worked) or been a compilation error.
This (multiple nil values) is the worst of both worlds. Part of the general weirdness of Go types.