On Wed, Mar 3, 2010 at 6:26 PM, Darren Duncan <dar...@darrenduncan.net> wrote:
> Mark J. Reed wrote:
>>
>> Doesn't unspace work for this?
>
> It would seem that S02 says otherwise:
>
>    Although we say that the unspace hides the whitespace from the parser, it
> does not hide whitespace from the lexer.  As a result, unspace is not
> allowed within a token.

D'oh, indeed.  Never mind.


>On Wed, Mar 3, 2010 at 7:00 PM, Damian Conway <dam...@conway.org> wrote:
> At 80-columns, you can represent integers up to ninety-nine
> quinvigintillion, [...]

Assuming the short scale.  On the long scale, that's ninety-nine
tredecillion, nine hundred ninety-nine thousand nine hundred
ninety-nine duodecillion, etc. :)

> there's always some variation on:
>
>    my $debt = +(
>        123456789012345678901234567890123456789012345678901234
>      ~ 567890123456789012345678901234567890123456789012345678
>      ~ 901234567890123456789012345678901
>    );

Serviceable, but feels a bit hackish.  Reminds me of faking P5 qw in
PHP by using split(' ', 'words like this').  But with a reasonably
intelligent compiler, as you say, at least it still compiles to a
literal.

I note that Rakudo alpha turns the above into Inf, which seems apropos. :)

-- 
Mark J. Reed <markjr...@gmail.com>

Reply via email to