In public data structures, could we use primitive types for identifiers instead of NumericId and StringId?
NumericId isn't semantic anyway like TweetId or UserId. I did see TweetId/UserId structs being generated by macros for use in request bodies, so maybe NumericId and StringId is useful behind the scenes. For the public API though, they make the IDs in common data types like Tweet and User less ergonomic to consume.
In public data structures, could we use primitive types for identifiers instead of
NumericId
andStringId
?NumericId
isn't semantic anyway likeTweetId
orUserId
. I did seeTweetId
/UserId
structs being generated by macros for use in request bodies, so maybeNumericId
andStringId
is useful behind the scenes. For the public API though, they make the IDs in common data types likeTweet
andUser
less ergonomic to consume.