Unit is a lot of typing, how to define a macro in coalton that expands U into Unit #1023
-
Example :
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
|
Beta Was this translation helpful? Give feedback.
-
It does not work:
Gives error : Unhandled L:SIMPLE-ERROR in thread #<SB-THREAD:THREAD "main thread" RUNNING Backtrace for: #<SB-THREAD:THREAD "main thread" RUNNING {1005E280A3}> |
Beta Was this translation helpful? Give feedback.
-
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
but this will not work for the type Unit. |
Beta Was this translation helpful? Give feedback.
-
Simple autocompletion should be handled by your editor. That said, type aliases will certainly be useful for coalton. (Ping #912.) |
Beta Was this translation helpful? Give feedback.
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
but this will not work for the type Unit.