How about a define-type-alias? #375
bon
started this conversation in
Ideas and Proposals
Replies: 1 comment 8 replies
-
I agree this could be useful. I know other communities are divided on the matter (type aliases make code hard to debug). I've just been using "newtypes" (i.e., ADTs with one constructor), which have no run-time penalty in release-mode, but have a penalty in terms of characters written. |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
...or some other moral equivalent of the Haskell type statement for introducing a synonym. It would be very helpful as an organisational tool.
Judging by a couple of comments in the thih example, I'm not the first person to think this.
Beta Was this translation helpful? Give feedback.
All reactions