chicken-hackers
[Top][All Lists]
Advanced

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

Re: [Chicken-hackers] extending define-values


From: Felix
Subject: Re: [Chicken-hackers] extending define-values
Date: Fri, 05 Apr 2013 22:49:15 +0200 (CEST)

From: Peter Bex <address@hidden>
Subject: Re: [Chicken-hackers] extending define-values
Date: Tue, 2 Apr 2013 22:48:00 +0200

> On Fri, Mar 29, 2013 at 01:43:55AM -0400, John Cowan wrote:
>> I've just filed ticket #1002 to extend define-values to allow arbitrary
>> lambda-lists.  That allows this sort of thing:
>> 
>> (define-values a (procedure-returning-unknown-number-of-values))
>> 
>> which binds a to all the values.
> 
> Quite useful, this.  Here's a patch to make this happen.  Unfortunately,
> the code that canonicalizes lambda bodies needs to take care of
> define-values as well, and that's rather tricky ("disgustingly complex",
> according to the comments).
> 
> For now this change might be acceptable, I'll take a stab at simplifying
> it later.

The patch looks ok to me, even though I'm not sure the benefit of having
this feature outweights the added complexity, apart from having a little
bit of extra consistence. 


cheers,
felix



reply via email to

[Prev in Thread] Current Thread [Next in Thread]