mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-11 14:21:10 +02:00
(and-let*): Give #t for an empty body, per srfi-2
spec, previously came out as an empty (begin).
This commit is contained in:
parent
479357a63d
commit
3fe213f8f1
1 changed files with 3 additions and 1 deletions
|
@ -25,7 +25,9 @@
|
|||
(define (expand vars body)
|
||||
(cond
|
||||
((null? vars)
|
||||
`(begin ,@body))
|
||||
(if (null? body)
|
||||
#t
|
||||
`(begin ,@body)))
|
||||
((pair? vars)
|
||||
(let ((exp (car vars)))
|
||||
(cond
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue