[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: collect special form for streams
In article <748@thalia.rice.edu> matthias@rice.edu (Matthias Felleisen) writes:
>In article <50472@ti-csl.CSNET> gateley@mips.UUCP (John Gateley) writes:
>>In article <294@gt-eedsp.UUCP> schw@gt-eedsp.UUCP (Dave Schwartz) writes:
>>>How can the "collect" special form for streams (from Chap. 3 of
>>>[...]
>>Extend-syntax's pattern matching is not powerful enough to do this.
>>[...]
>John, what do you think of this one?
>[Matthias's code deleted]
>
>P.S. Eugene Kohlbecker invented extend-syntax.
Hi Matthias,
As usual you are right and I am wrong. Let me rephrase it a bit:
Extend-syntax is not powerful enough to do it without using help
macros. I can generate the (car (cdr (... tuple))) pattern without
using 'with' or your rebinding of tuple, but I dont think that it
can be done as part of the collect macro without actually changing
the definition of collect. I dont want to rebind tuple because it
changes the pattern matching part of the problem. If you change the
definition, then I think you can do it. Can you prove me wrong this
time?
John