top | item 37805355

(no title)

temp123789246 | 2 years ago

Curious about the reasoning for removing type aliases? I don’t have an opinion on that myself

discuss

order

tadfisher|2 years ago

newtypes are strictly better. Basically 100% of the time a type alias leaks some API that's inappropriate for the intended usage of the type, and you can derive newtype methods if you actually want to do that.

whateveracct|2 years ago

Not strictly better. Type aliases are sometimes a nice thing to use.