Comment

Comment by welder

I don't agree, especially on the second point. Having strings default to empty instead of nil is a feature not a flaw.

What Go actually needs: Nil-Safe Types! [1]

Programmers can work around verbose error handling(3) and lack of enums(1), but forget to check for nil before using a pointer... CRASH! And that's something the compiler doesn't warn about.

[1]: https://wakatime.com/blog/48-go-desperately-needs-nil-safe-t...

parent welder 5 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton