no need for promise defaults
svn: r1113
This commit is contained in:
parent
9aafd3a272
commit
fd7a56fb36
|
@ -348,9 +348,7 @@
|
||||||
(cond [(or (null? args) (null? (cdr args)) (not (keyword? (car args))))
|
(cond [(or (null? args) (null? (cdr args)) (not (keyword? (car args))))
|
||||||
(and (pair? not-found)
|
(and (pair? not-found)
|
||||||
(let ([x (car not-found)])
|
(let ([x (car not-found)])
|
||||||
(cond [(procedure? x) (x)]
|
(if (procedure? x) (x) x)))]
|
||||||
[(promise? x) (force x)]
|
|
||||||
[else x])))]
|
|
||||||
[(eq? (car args) keyword) (cadr args)]
|
[(eq? (car args) keyword) (cadr args)]
|
||||||
[else (loop (cddr args))])))
|
[else (loop (cddr args))])))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user