[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Proposed mildly incompatible change to MULTIPLE-VALUE(-BIND)



This sounds superficially plausible and has been proposed many times before.
The reason it has never been accepted is that in practice most functions 
which return multiple values rely on the feature that extra values the
caller does not want are thrown away.  Calling and returning aren't really
as symmetric in practice as they are in theory.  It probably would be useful
to have a way of requiring at least a certain number of values to be
returned.  Of course, then all the functions which rely on extra values
being supplied NIL would have to be fixed.  This is pretty common practice
when you have code like (and <condition> (values <val1> <val2>)).