Re:Connect-Web: TypeScript library for calling RPC servers f...
by throwaway894345 on Thursday August 04, 2022 @10:43PM
(#32350936)
I’m not familiar with protobufs, but zero and nil are different types in Go. You can’t even compare a numeric type with a reference type (it’s a compiler error).
[ Parent
| on HN ]
Re:Connect-Web: TypeScript library for calling RPC servers f...
by tommiegannert on Friday August 05, 2022 @03:09PM
(#32360560)
GP meant that you can't differentiate between the zero-value and "not present".
In proto2, strings were represented as *string in Go. In proto3, they are simply string, and "" is the default.