Re: Everything is an object.

2002-12-16 Thread Piers Cawley
Dave Storrs <[EMAIL PROTECTED]> writes: > On Mon, Dec 16, 2002 at 08:26:25PM +, Piers Cawley wrote: >> Dave Storrs <[EMAIL PROTECTED]> writes: >> > On Mon, Dec 16, 2002 at 06:47:39PM +, Piers Cawley wrote: >> >> Michael Lazzaro <[EMAIL PROTECTED]> writes: > >> I haven't been arguing agains

Re: Everything is an object.

2002-12-16 Thread Dave Storrs
On Mon, Dec 16, 2002 at 03:44:21PM -0500, Dan Sugalski wrote: > At 11:12 AM -0800 12/16/02, Dave Storrs wrote: > >You find R2L easier to read, I find L2R > >easier. TIMTOWDI. Perl6 should be smart enough to support both. > > Why? > > Yes, technically we can do both R2L and L2R. We can also sup

Re: Everything is an object.

2002-12-16 Thread Dave Storrs
On Mon, Dec 16, 2002 at 08:26:25PM +, Piers Cawley wrote: > Dave Storrs <[EMAIL PROTECTED]> writes: > > On Mon, Dec 16, 2002 at 06:47:39PM +, Piers Cawley wrote: > >> Michael Lazzaro <[EMAIL PROTECTED]> writes: > I haven't been arguing against his syntax for adding L to R > pipelines, but

Re: Comparing Object Identity

2002-12-16 Thread Austin Hastings
--- Dave Whipp <[EMAIL PROTECTED]> wrote: > I can imagine writing: > > $a eq:i $b # compare, case insensitive > $a eq:w $b # compare, ignore whitespace differences > $a eq:ID $b # compare identities > > I think that the modifier concept is too useful to be limited to the > rx// operator.

Re: Comparing Object Identity

2002-12-16 Thread Dave Whipp
"Piers Cawley" <[EMAIL PROTECTED]> wrote : > > $a eq : ID $b # yes, I would want to generalize that > > I started off thinking 'well, you could just define an 'is' operator' > and then realised we already have one. Hmm. Personally i don't have a > problem with not having an operator for this par

Re: Comparing Object Identity

2002-12-16 Thread Piers Cawley
"Dave Whipp" <[EMAIL PROTECTED]> writes: > "Piers Cawley" <[EMAIL PROTECTED]> wrote : >> I found myself mulling over: >> >> $obj.is($other_obj); >> >> Which seems to work reasonably well, and I'd be rather surprised if >> it clashed with anything with different semantics... > > My only problem

Re: Comparing Object Identity

2002-12-16 Thread Dave Whipp
"Piers Cawley" <[EMAIL PROTECTED]> wrote : > I found myself mulling over: > > $obj.is($other_obj); > > Which seems to work reasonably well, and I'd be rather surprised if > it clashed with anything with different semantics... My only problem with it is the lack of symmetry. Is there any reason

Re: Everything is an object.

2002-12-16 Thread Dan Sugalski
At 11:12 AM -0800 12/16/02, Dave Storrs wrote: On Mon, Dec 16, 2002 at 06:47:39PM +, Piers Cawley wrote: Michael Lazzaro <[EMAIL PROTECTED]> writes: > Mind you (purely devil's advocate), I'm not entirely sure the R-to-L > syntax truly _needs_ to be in Perl6. It's true I use it all the ti

Re: Everything is an object.

2002-12-16 Thread Piers Cawley
Dave Storrs <[EMAIL PROTECTED]> writes: > On Mon, Dec 16, 2002 at 06:47:39PM +, Piers Cawley wrote: >> Michael Lazzaro <[EMAIL PROTECTED]> writes: >> >> > Mind you (purely devil's advocate), I'm not entirely sure the R-to-L >> > syntax truly _needs_ to be in Perl6. It's true I use it all the

Re: Everything is an object.

2002-12-16 Thread Dave Storrs
On Mon, Dec 16, 2002 at 06:47:39PM +, Piers Cawley wrote: > Michael Lazzaro <[EMAIL PROTECTED]> writes: > > > Mind you (purely devil's advocate), I'm not entirely sure the R-to-L > > syntax truly _needs_ to be in Perl6. It's true I use it all the time, > > but I can retrain to use L-to-R meth

Re: Comparing Object Identity

2002-12-16 Thread Piers Cawley
Aaron Crane <[EMAIL PROTECTED]> writes: > Piers Cawley writes: >> I found myself mulling over: >> >> $obj.is($other_obj); >> >> Which seems to work reasonably well, and I'd be rather surprised if it >> clashed with anything with different semantics... > > I quite like it. It also has the ad

Re: Everything is an object.

2002-12-16 Thread Piers Cawley
Michael Lazzaro <[EMAIL PROTECTED]> writes: > On Friday, December 13, 2002, at 10:59 PM, Piers Cawley wrote: >>map { .[0] } >>sort { $^a[1] cmp $^b[1] } >>map { $_ => some_transform($_) } >>grep /.../, @array >> >> happily stays as it is; I fail to see what recasting that as >>

Re: Everything is an object.

2002-12-16 Thread Michael Lazzaro
On Friday, December 13, 2002, at 10:59 PM, Piers Cawley wrote: map { .[0] } sort { $^a[1] cmp $^b[1] } map { $_ => some_transform($_) } grep /.../, @array happily stays as it is; I fail to see what recasting that as map { .[0] } <- sort { $^a[1] cmp $^b[1] } <- map { $_

Re: Comparing Object Identity

2002-12-16 Thread Aaron Crane
Piers Cawley writes: > I found myself mulling over: > > $obj.is($other_obj); > > Which seems to work reasonably well, and I'd be rather surprised if it > clashed with anything with different semantics... I quite like it. It also has the advantage of disallowing the equivalent of: my $sto

Re: Comparing Object Identity

2002-12-16 Thread Piers Cawley
Dave Storrs <[EMAIL PROTECTED]> writes: > On Fri, Dec 13, 2002 at 09:32:02AM -0800, Michael Lazzaro wrote: >> >> $obj.ID; >> $obj.IDENTITY; > > FWIW, I favor the latter. I found myself mulling over: $obj.is($other_obj); Which seems to work reasonably well, and I'd be rather sur

Re: Comparing Object Identity

2002-12-16 Thread Dave Storrs
On Fri, Dec 13, 2002 at 09:32:02AM -0800, Michael Lazzaro wrote: > > $obj.ID; > $obj.IDENTITY; FWIW, I favor the latter. --Dks