[plt-scheme] How do I convert (values ...) to something I can do something with?

From: hendrik at topoi.pooq.com (hendrik at topoi.pooq.com)
Date: Wed Mar 10 10:28:46 EST 2010

On Tue, Mar 09, 2010 at 10:27:03PM -0700, Jay McCarthy wrote:
> I use multiple value returns _a lot_.
> I try to never overload lists or pairs and instead always make
> structs. I try to limit myself to structs that "make sense" in the
> wild as opposed to ones that will only be produced/consumed by a
> single function; I find that in those cases I really want multiple
> values.
> However, multiple values have a problem that when you get more than a
> few it is complicated to remember which is which because all you have
> is positions. At least with function calls you can have keyword args.
> In those cases, I let myself use a struct, but I feel bad about it.

Arguments and results are category-theoretical duals.  If you have 
multiple arguments, you should have multiple results.  If you have 
keyword arguments, you should have keyword results.  Get with it, 
language designers!

-- hendrik  :-)

Posted on the users mailing list.