News for hackers. Stuff that matters.
Re:Python Is Easy. Go Is Simple. Simple != Easy by Mawr on Friday December 01, 2023 @11:22PM (#38495840)
> There's no way to ask for a not-null pointer at the type level, so you have to check for nullity everywhere and good luck debugging those runtime panics.

You can write a simple Option type yourself using generics [1]. It's not strictly idiomatic and you do have to remember to use it, but it works well.

[1]: (my post) https://news.ycombinator.com/item?id=38331565

There are no comments on this comment yet.