Join Nostr
2024-10-16 16:18:30 UTC
in reply to

Carlana :v_trans:​ on Nostr: It looks like they're using unsafe so Values can be a union-type with numbers and ...

It looks like they're using unsafe so Values can be a union-type with numbers and string headers more efficiently. It would be nice if Go had direct support for unions, but I'm not sure they could store it as efficiently even in that case unless the compiler had some new optimizations to bring back the interface value inlining that used to be done.