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

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 surprised if

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 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 advantage of

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 method calls

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 time, but I

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 time,

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 with it is the lack

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. But there

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 against the

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 support an

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 against his syntax for