macro-bug.scm 430 B

123456789101112131415161718192021
  1. ;; (use-modules (guix records))
  2. ;; (define-record-type* <sway-bindsym>
  3. ;; sway-bindsym make-sway-bindsym
  4. ;; sway-bindsym?
  5. ;; (key-combo sway-bindsym-key-combo
  6. ;; (default "")))
  7. ;; (display sway-bindsym) ;; compile error at unknown location
  8. (define-syntax when
  9. (syntax-rules ()
  10. ((when condititon exp ...)
  11. (if condititon
  12. (begin exp ...)))))
  13. (when #t (display "Hello\n"))
  14. (display when)