this post was submitted on 25 Nov 2023
1 points (100.0% liked)

Lisp

53 readers
3 users here now

founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] kniebuiging@alien.top 1 points 11 months ago

I won't use it, its indentation is very off.

take here: b is the body of the lambda function, but its indented as if its the body of the `letrec`

    (syntax (letrec ((f (lambda (a ...)
              b
              ...)))

or here


  
(define-syntax aif  
  (lambda (x)  
(syntax-case x ()  
((\_ test then else)  
(with-syntax ((it (datum->syntax x 'it)))  
\#'(let ((it test))  
(if it then else)))))))