Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Less-than-awesome error message when using 'loop while' in Rakudo #1284

Closed
p6rt opened this issue Sep 16, 2009 · 4 comments
Closed

Less-than-awesome error message when using 'loop while' in Rakudo #1284

p6rt opened this issue Sep 16, 2009 · 4 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Sep 16, 2009

Migrated from rt.perl.org#69180 (status was 'resolved')

Searchable as RT69180$

@p6rt
Copy link
Author

p6rt commented Sep 16, 2009

From @masak

$ 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'.

@p6rt
Copy link
Author

p6rt commented Jul 28, 2010

From @coke

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

@p6rt
Copy link
Author

p6rt commented Jul 28, 2010

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Feb 20, 2011

@masak - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Feb 20, 2011
@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant