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

Re: NaN+NaNi

Thread Previous | Thread Next
From:
raptor
Date:
October 11, 2001 10:26
Subject:
Re: NaN+NaNi
Message ID:
011a01c15271$594e2480$0500a8c0@xxx
| > As for more complex string literals evaluating to numbers, I think
that's
| > something best left to either a user-written sub, or user-written fancy
| > parser hacks. Up to Larry whether it goes in the base language, but I
think
| > I'd prefer not.
|
| Speaking of string turning into numbers ...
|
| It's bothered me that I can write 100_000 in my perl code, but if I have
| a string "100_000" it'll evaluate to 100 when numerified. It would be
| really weird if "10indigo" became 10i, "1e3foobar" became 1000, and
| "10_000" became 10 in Perl 6 IMHO.

]- Agree if u want this in strings then use :
"$( 10i ) ndigo"
"$( 1e3 ) foobar"

=====
iVAN
raptor@unacs.bg
=====



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