Y
Hacker News
new
|
ask
|
show
|
jobs
by
demurgos
544 days ago
Yes, it's the standard way if you want implicit compat with the base type, so you can pass a value of type `A` to a function expecting a `string`. An other name for this pattern is "branded types".