or.scm 485 B

123456789101112131415
  1. ;; We need to use letrec-syntax here, because inside the
  2. ;; definition we use the defined binding already.
  3. (letrec-syntax ([my-or
  4. (syntax-rules ()
  5. ((my-or)
  6. #t)
  7. ((my-or exp)
  8. exp)
  9. ((my-or exp rest ...)
  10. (let ((t exp))
  11. (if t
  12. t
  13. (my-or rest ...)))))])
  14. (my-or #f "rockaway beach"))