- (define-type NAME TYPE)syntax
Defines an alias for TYPE with the given NAME, which must be a symbol. NAME can be used anywhere where TYPE is allowed.
Currently type aliases are global to the whole compiled file and leak when defined inside modules. This is a bug and will be addressed in the future.
Since the implementation and use of the remaining macros in this module is still under development, you are invited to consult the crunch.compiler.primitives.scm source file in the CRUNCH distribution for inspiration.