[Date Prev] [Date Next] [Thread Prev] [Thread Next] Date Index Thread Index Search archive:
Date:Mon May 15 12:51:10 2001 
Subject:Re: filenames, argument list separators + gsl extension 
From: 
Volume-ID:1010515.03 

In article <3b01019e.257882975@news.cis.dfn.de>,
	Jonathan.Cunningham@tesco.net (Jonathan L Cunningham) writes:
> On Mon, 14 May 2001 22:50:29 GMT, hedgehog@electric-hedgehog.net
> (Chris Dollin) wrote:
> 
>>Part of that is syntax; part of it is the Poplog VM. The latter controls
>>what kind of things can be said; the former controls how *easily* they
>>may be said. For example, Pop's syntax for closures is pretty easy to
>>write and read; it gets used a *lot*. It's not perfect (I think Spice
>>"holes" will turn out better, but they've not been used in anger), but
>>it's easier than explicit lambda-expressions. If it's clumsy to write,
>>*it doesn't get used*.
 
> This is where lambda expressions, or pop procedures, are more
> powerful but syntactically clumsier. This will freeze in
> the second argument of a three argument function:
> 
> define midclosure(f, arg);
>     procedure x, y;
>         f(x, arg, y);
>     endprocedure
> enddefine;

Just to show where we're going, the proposed Spice syntax for writing 
the midclosure of f is

    f( ?1, arg, ?2 )

where ?1 and ?2 are "holes", implicit arguments for the "nearest
surrounding holey context", which is the function-application (not
the commas: although that would make semantic sense, it would generally
be not useful).

[comments re: objectclass deleted]

-- 
Chris "?2 - ?1, for example" Dollin
C FAQs at: http://www.faqs.org/faqs/by-newsgroup/comp/comp.lang.c.html