General Category > Ideas
Distinct types
(1/1)
lerno:
An interesting feature in Odin is that of "distinct" types. That is, it acts like you actually created a completely new type, not a typedef alias. That way you can for example have a "UserId" type which is an int underneath but typechecks as if it was another type.
Navigation
[0] Message Index
Go to full version