>         I wonder whether one of the reasons that Scheme standards have
> avoided requiring an arity procedure is that the most natural design for it
> in classical Scheme would involve returning multiple values -- a natural
> number indicating the minimum number of arguments and a Boolean indicating
> whether the arity is variable.

Nah, the most natural design is to return a /list/ of two elements.  :-)

For one thing, with a list you can /remember/ the arity in a table, and
"the arity" is one single datum.

Of course you could use multiple values to deconstruct that list, and then
use LIST to reconstruct it, but that seems awkward to me.

_______________________________________________
r6rs-discuss mailing list
[email protected]
http://lists.r6rs.org/cgi-bin/mailman/listinfo/r6rs-discuss

Reply via email to