Hacker News new | ask | show | jobs
by temp123789246 981 days ago
Curious about the reasoning for removing type aliases? I don’t have an opinion on that myself
1 comments

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.
Not strictly better. Type aliases are sometimes a nice thing to use.