Re: Numeric Literals (Summary 4)

[email protected] (Michael Lazzaro) Fri, 22 Nov 2002 09:13:32 -0800
Newsgroups perl.perl6.documentation
Message-ID <[email protected]>
On Thursday, November 21, 2002, at 04:41  PM, Andrew Wilson wrote:

> On Thu, Nov 21, 2002 at 01:02:57PM -0800, Michael Lazzaro wrote:
>>    _01.23      # wrong
>>    01.23_      # wrong
>
> Is _ not space eater, or was that not decided?  If it is then aren't
> these two just literals with space eaters.

Yep, that might happen.  So the two above _might_ be legal, though I 
have a hard time thinking of a scenario in which it would be useful.

Note that the space-eating '_' wouldn't be part of the literal... it's 
a (pseudo?)operator on the literal, so the purely-literals tests should 
still mark the above as bad literal syntax.

MikeL