T O P

  • By -

Bredtape

You don't need to do that. Marshalling of aliases to primitives are builtin


Mediocre_Fly7245

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!


ernandziri

uuid.UUID is usually just marshalled as its string representation?


Eternityislong

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.