News for hackers. Stuff that matters.
Re:Ask HN: What do you like/dislike about Golang? by liampulles on Saturday November 26, 2022 @07:12PM (#33758485)
nit: One can use pointer values for marking JSON fields as optional, and thus distinguish between the 0 and nil case.

I felt similar to you initially about the difference between 0 and Null/None - I have to say that once I started modelling my APIs so that these two cases could be treated equivalently, I think the quality of my APIs improved.

Re:Ask HN: What do you like/dislike about Golang? by michele on Sunday November 27, 2022 @03:28AM (#33761408)
Not really: it still can't tell the difference between a null value and a missing field which is different when working with APIs as a missing field usually means "don't touch it" while null means "nullify it"