Fewer type aliases?
Opened this issue · 7 comments
Somewhat of a style choice... But I would tend towards not aliasing the types or using a full newtype
Where do you think it is over used?
I basically wouldn't use them in any of your examples. I might use newtype for aliases. I wouldn't say over used. Some people like them.
Hmmm maybe you can point me to a specific type? I am still struggling to follow you. I am sorry.
type Zipper = [Int]
I would new type that one or just use [Int], if you don't think much information is added.
Ah ok.
Now I am with you.
I did a few.
I prefer the newtype over aliases for the types that I expose.
But I still think some type names helps to make reading the code easier, so I did keep some internal type aliases.
Thanks again.
This definitely helped.