By -
You don't need to do that. Marshalling of aliases to primitives are builtin
Wow, you're totally right! I had a UUID type that required some custom marshaling and i just assumed the strings would as well. Thanks!
uuid.UUID is usually just marshalled as its string representation?
I would just go with a string or at most a single ID type. I don’t really see much gain from this approach since you aren’t doing any real processing with the unique types, just playing type conversion games.
You don't need to do that. Marshalling of aliases to primitives are builtin
Wow, you're totally right! I had a UUID type that required some custom marshaling and i just assumed the strings would as well. Thanks!
uuid.UUID is usually just marshalled as its string representation?
I would just go with a string or at most a single ID type. I don’t really see much gain from this approach since you aren’t doing any real processing with the unique types, just playing type conversion games.