3 ms·
Why does scheme have syntax for multiple values at all? (define (g x y z) ...) (call-with-values f g) means the same as (define (g . xs) ...) (apply
by thisrod 16y ago
Why does scheme have syntax for multiple values at all?
(define (g x y z) ...)
(call-with-values f g)
means the same as
(define (g . xs) ...)
(apply g (f)),
and it's longer.
If there's room for extra syntax, I think
(g . (f a b c))
for
(apply g (f a b c))
would be more useful.
- rapacity 16y agomultiple return values can be optimized