Re: Pipeline Performance

2004-09-01 Thread Sean O'Rourke
At Tue, 31 Aug 2004 13:23:04 -0400, [EMAIL PROTECTED] (Aaron Sherman) wrote: I would think you actually want to be able to define grep, map, et al. in terms of the mechanism for unraveling, and just let the optimizer collapse the entire pipeline down to a single map. Even for map and grep this

Re: Pipeline Performance

2004-09-01 Thread Aaron Sherman
On Tue, 2004-08-31 at 14:11, Sean O'Rourke wrote: At Tue, 31 Aug 2004 13:23:04 -0400, [EMAIL PROTECTED] (Aaron Sherman) wrote: I would think you actually want to be able to define grep, map, et al. in terms of the mechanism for unraveling, and just let the optimizer collapse the entire

A question about attribute functions

2004-09-01 Thread Aaron Sherman
How do you declare attribute functions? Specifically, I was thinking about map and what kind of object it would return, and I stumbled on a confusing point: class mapper does iterator { has .transform; ... } Ok, that's fine, but what kind of

Re: Synopsis 2 draft 1

2004-09-01 Thread Michele Dondi
On Sat, 14 Aug 2004, Smylers wrote: could reparse the result. XXX .repr is what Python calls it, I think. Is there a better name? Yes; I've no suggestions as to what it might be, but surely there's _got_ to be a better name than C.repr. .repr is fine for me. An alternative that springs

Re: A question about attribute functions

2004-09-01 Thread Larry Wall
On Wed, Sep 01, 2004 at 08:02:33AM -0700, Larry Wall wrote: : That might not work either. This will, though: : : ($x.transform)(); So will $x.transform()(); for that matter... Larry

Re: A question about attribute functions

2004-09-01 Thread Juerd
Larry Wall skribis 2004-09-01 8:02 (-0700): : $x.transform.(); That might not work either. This will, though: ($x.transform)(); This is surprising. Can you please explain why .() won't work? I have methods return subs quite often, and like that I can just attach -() to it to make

Re: A question about attribute functions

2004-09-01 Thread Larry Wall
On Wed, Sep 01, 2004 at 07:08:57PM +0200, Juerd wrote: : Larry Wall skribis 2004-09-01 8:02 (-0700): : : $x.transform.(); : That might not work either. This will, though: : ($x.transform)(); : : This is surprising. Can you please explain why .() won't work? I have : methods return subs