Front page | perl.perl6.language |
Postings from October 2001
Re: NaN semantics
Thread Previous
|
Thread Next
From:
Dan Sugalski
Date:
October 10, 2001 08:53
Subject:
Re: NaN semantics
Message ID:
5.1.0.14.2.20011010114904.021a3bf8@pop.sidhe.org
At 04:42 PM 10/10/2001 +0100, Sam Vilain wrote:
>On Wed, 10 Oct 2001 11:32:02 -0400
>Dan Sugalski <dan@sidhe.org> wrote:
>
> > >Great idea, as well as sqrt(-1) returning 1i istead of raising the
> > >exception.
> > If we do them, yep. Currently no promises there.
>
>If you do that, make sure it has to be enabled with a pragma. Having
>complex numbers showing up in the middle of bad code is a scary concept :)
Yeah, but is the code actually *wrong* if it does a sqrt(-1)? (I know,
don't go there... :)
> > I think the meaning of the suffices are sufficiently vague as to make me
> > uncomfortable supporting them. Is 1K 1024 or 1000? I can make a good
> > case for both, and that's never a good sign.
>
>If people want base 10, let them use "e" syntax.
>
>1e3 = 1000
>1k = 1024
I'll leave that for Larry to decide. I'm just thinking of all the 60G hard
drives I see at Best Buy that are really 60e9 bytes, and the 1K ohm
resistors that are really 1000 ohms. (Well, give or take a bit for ambient
temperature...)
Dan
--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
dan@sidhe.org have teddy bears and even
teddy bears get drunk
Thread Previous
|
Thread Next