develooper Front page | perl.perl6.language | Postings from October 2001

Re: NaN semantics

Thread Previous | Thread Next
From:
RaFaL Pocztarski
Date:
October 10, 2001 12:35
Subject:
Re: NaN semantics
Message ID:
3BC49906.1A5791A5@rfl.pl
David Whipp wrote:

> > So the imaginary numbers would be standard literals? Like
> >
> >     $x=2+10i;
> >
> > Great idea, as well as sqrt(-1) returning 1i istead of raising the
> > exception. BTW, I was thinking once that numeral literals
> > like 4k or 10G
> > (meaning 4*2**10, 10*2**30) would be very nice. What do you think?
> >
> > - RaFaL Pocztarski, admin@rfl.pl
>
> First this thread tells me that "123foo" will be 123 in numeric
> context. Now I find myself wondering what "123indigo" evaluates
> to!

I have a strange felling that I should just shut up, as my ideas only
cause a lot of chaos... :)

- RaFaL Pocztarski, admin@rfl.pl



Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About