|
|
Choosing A Webhost: |
Re: Ambiguity of parsing numbers with underscores/methods: msg#00224lang.perl.perl6.language
Luke Palmer wrote: On 8/16/05, Ingo Blechschmidt <iblech@xxxxxx> wrote: 1.e5 # all of these... 1._e5 # 1._0e5 # 1.e_0_5_ # == 1 * 10^5? The longest-possible-token metarule, common among languages, would want all of these to be numbers. I see that perl5's lexer has this rule (3rd edition, p49); is not perl6's specced to have it as well? Likewise, if hex numbers allow fractions, 0xDE_AD.BE_EF # 57005.7458343505859375 ? 0xde_ad.be_ef # same should be taken as a number. (Naturally 'e' as exponent marker is here problematic.) If one wants to call a method on a number, surely one may follow the usual advise and write 1 ._5 1 ._foo 1 .efoo 1 .e_foo 0xFF .dead ? -- Roger Hale
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Time::Local, Dave Rolsky |
|---|---|
| Next by Date: | Re: GC API from discussion, David Formosa \(aka ? the Platypus\) |
| Previous by Thread: | Re: Ambiguity of parsing numbers with underscores/methods, Nicholas Clark |
| Next by Thread: | Re: Ambiguity of parsing numbers with underscores/methods, Larry Wall |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |