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
Rakudo allows 'when' block outside of a topicalizer block, shouldn't #1444
Comments
From @masak<masak> std: when 42 { say "This should fail" } |
From @bbkrNOM: still broken bbkr:nom bbkr$ ./perl6 -e 'when 42 { say "This should fail" }' |
The RT System itself - Status changed from 'new' to 'open' |
From @bbkr2012.10 - still broken, but with different message $ perl6 -e 'when 42 { say "This should fail" }' |
From @jnthnOn Wed Dec 16 08:18:11 2009, masak wrote:
Tried making this a mortal sin in a number of ways a month or two back. Actually discovered that there were loads of useful uses of when outside of a given/for-like construct that took advantage of every sub and block getting a fresh $_, setting it, and using when to check against it: sub foo(...) { In discussion, nobody seemed to want to forbid this. So, the design has been revised: Raku/old-design-docs@5f132abb41 Tests in S04-statements/when.t cover this behavior. |
@jnthn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#71368 (status was 'resolved')
Searchable as RT71368$
The text was updated successfully, but these errors were encountered: