3 ms·
agree. In C# we were going from "every reference type can be null" to "only things marked with '?' can be null" with nullable reference types. When I started
by suddengunter 5y ago
agree.
In C# we were going from "every reference type can be null" to "only things marked with '?' can be null" with nullable reference types.
When I started using Go it was nice to see that only something, that is explicitly created as pointer is nullabe, everything else can't be null / nil - and you can't get panic from nil referencing stuff
- simiones 5y ago> When I started using Go it was nice to see that only something, that is explicitly created as pointer is nullabe, everything else can't be null / nil - and you can't get panic from nil referencing stuff Well, it's the same in C# since 1.0 to some extent, except that people rarely used `struct` (value types) in C#. The ecosystem matters a lot, of course, but just at the language level, Go and C# structs have the same semantics (though in C# it's harder to get a reference to a struct).