develooper Front page | perl.perl6.compiler | Postings from July 2010

[perl #69180] [BUG] Less-than-awesome error message when using 'loop while' in Rakudo

From:
Will Coleda via RT
Date:
July 28, 2010 08:10
Subject:
[perl #69180] [BUG] Less-than-awesome error message when using 'loop while' in Rakudo
Message ID:
rt-3.6.HEAD-11314-1280329843-1890.69180-15-0@perl.org
On Wed Sep 16 14:53:40 2009, masak wrote:
> $ perl6 -e 'my $a = 0; loop while $a < 10 { say $a++ }'
> Confused at line 1, near "{ say $a++"
> [...]
> 
> I think the desired syntax is 'repeat while', not 'loop while'. The
> compiler could give a hint to that effect. Ditto 'loop until'.

Now gives the improved:

===SORRY!===␤Missing block at line 22,
               near "while $a <"

Not quite as awesome as STD's color coded reply. Good enough to close?

-- 
Will "Coke" Coleda



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