Re:An unordered list of things I miss in Go
by jochem9 on Sunday August 18, 2024 @02:49AM
(#41280626)
There is no difference. You need to handle that based on the context you're in.
[ Parent
| on HN ]
Re:An unordered list of things I miss in Go
by EdwardDiego on Sunday August 18, 2024 @02:55AM
(#41280636)
I was wondering if there's a pattern of using Option types or something to signal the difference.
I ask because I hit this issue a fair few years ago with protobuf v3, we ended up using a wrapper type pattern. Can't recall why it was important to know at the time, but it was.