mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-12 23:00:22 +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)
|
(define (expand vars body)
|
||||||
(cond
|
(cond
|
||||||
((null? vars)
|
((null? vars)
|
||||||
`(begin ,@body))
|
(if (null? body)
|
||||||
|
#t
|
||||||
|
`(begin ,@body)))
|
||||||
((pair? vars)
|
((pair? vars)
|
||||||
(let ((exp (car vars)))
|
(let ((exp (car vars)))
|
||||||
(cond
|
(cond
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue