Re: Damn you all

2001-10-08 Thread Damian Conway
John confessed: > I unconsciously typed *both* //= and $( ... ) today :P ;) We are Perl6. Resistance is futile. You *will* be assimilated. ;-) Damian PS: If you're keen on $(...) and @(...), grab the wonderful Perl6::Interpolators module from the CPAN.

Re: NaN semantics

2001-10-08 Thread Damian Conway
> But I assume that == means numerically equal (and here I could be > wrong). If what I assume is true however, then anything which doesn't > have any numerical meaning, numerically compared to anything (even to > itself) should not return the misleading result that the two compared

Re: huffman encoding and bit operators

2001-10-08 Thread Bart Lateur
On Thu, 4 Oct 2001 11:21:41 -0700 (PDT), esp5 wrote: >> Sure it doesn't pick up everything (late compilation), but in the 1056 files >> I have there I had exactly 7 occurances of bit operators. This does not >> impress me enough to use valuable punctuation. > >Now, I just tried it on perl5.6.1,

Damn you all

2001-10-08 Thread John Siracusa
I unconsciously typed *both* //= and $( ... ) today :P ;) -John

Re: Customizable default hash and array values.

2001-10-08 Thread Michael G Schwern
On Mon, Oct 08, 2001 at 03:23:22PM +0200, Bart Lateur wrote: > On Sat, 6 Oct 2001 19:48:13 -0400, Michael G Schwern wrote: > > >> What about zero. > > > >No problem in Perl 6. > > > >my $foo = %hash{foo} // 'some default'; > > And nobody will ever confuse this operator with the "comment till

Re: NaN semantics

2001-10-08 Thread RaFaL Pocztarski
Dan Sugalski wrote: > At 09:07 AM 10/8/2001 +1000, Damian Conway wrote: > >I see your (and others') point here, but I view NaN as a *marker* indicating > >a non-numeric result. Markers should always compare equal to themselves. > >(Frankly, *everything* should compare equal to itself -- which is

Re: Customizable default hash and array values.

2001-10-08 Thread RaFaL Pocztarski
Bart Lateur wrote: > On Sat, 6 Oct 2001 19:48:13 -0400, Michael G Schwern wrote: > > >> What about zero. > > > >No problem in Perl 6. > > > >my $foo = %hash{foo} // 'some default'; > > And nobody will ever confuse this operator with the "comment till end of > line" marker in C++, Java and Jav

Re: NaN semantics

2001-10-08 Thread Dan Sugalski
At 09:07 AM 10/8/2001 +1000, Damian Conway wrote: >I see your (and others') point here, but I view NaN as a *marker* indicating >a non-numeric result. Markers should always compare equal to themselves. >(Frankly, *everything* should compare equal to itself -- which is where >IEEE 754 goes horribly

Re: Customizable default hash and array values.

2001-10-08 Thread Bart Lateur
On Sat, 6 Oct 2001 19:48:13 -0400, Michael G Schwern wrote: >> What about zero. > >No problem in Perl 6. > >my $foo = %hash{foo} // 'some default'; And nobody will ever confuse this operator with the "comment till end of line" marker in C++, Java and Javascript, and many more I suppose. --

Re: NaN semantics

2001-10-08 Thread RaFaL Pocztarski
Damian Conway wrote: > RaFaL asked: > >> So OK, tell me if I get it right, and how (and why) it will look in Perl >> 6. From Exegesis I see that NaN==NaN, but that's not stated in >> Apocalypse (or I just missed it). > > No, it's not stated there. But I hope that Perl 6 will follow th

Re: Hyper-operators and Underscore

2001-10-08 Thread raptor
I find underscore also a little bit mesleading, but at least will not broke my code (I was never using underscore in identifiers, I'm using Upercassing i.e. $yetAnotherVar ) :") = iVAN [EMAIL PROTECTED] = PS. it is time new keyboard to be invented :")