alias.scm 413 B

12345678910111213141516
  1. (library (alias)
  2. (export alias)
  3. (import (except (rnrs base) error)
  4. (only (guile)
  5. lambda* λ))
  6. (define-syntax alias
  7. (syntax-rules ()
  8. [(_ aliased new-alias)
  9. (define aliased new-alias)]
  10. ;; Catch all.
  11. [(_ other* ...)
  12. (syntax-error "unrecognized form in macro call:"
  13. (quote
  14. (alias aliased new-alias)))])))