Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
temp123789246
· 3y ago · 0 comments
Curious about the reasoning for removing type aliases? I don’t have an opinion on that myself
Comments
[–]
tadfisher
3y 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
3y ago
Not
strictly
better. Type aliases are sometimes a nice thing to use.