[plt-scheme] Let-values and srfi-11
I just found out that the let-values in mzscheme
doesn't allow the first example of srfi-11:
>(let-values (((a b . c) (values 1 2 3 4))))
(list a b c))
let-values: bad syntax in: c
Where as the srfi want's the result to be:
(1 2 (3 4))
This isn't a bug (since the dot-notation isn't
mentioned in the mzscheme docs), but is it
intensional, or is the reason that srfi-11 is
newer than the mzscheme implementation of let-values?
I wanted to use the notation in a context, where I
didn't know how many values were returned.
--
Jens Axel Søgaard