Skip to content

Unit is a lot of typing, how to define a macro in coalton that expands U into Unit #1023

Answered by stylewarning
devosalain asked this question in Help!
Discussion options

You must be logged in to vote

There is presently no way to make a type alias that allows one-for-one replacement.

If you wish to shorten the variable named Unit, then you can do

(define U Unit)

but this will not work for the type Unit.

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by devosalain
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help!
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #1020 on October 17, 2023 16:53.