# New Ticket Created by "Carl Mäsak"
# Please include the string: [perl #114554]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=114554 >
<timotimo> r: sub postfix:{}($a) { say "$a bracey brace" }; 42{}
<p6eval> rakudo befe7c: OUTPUT«(timeout)»
<timotimo> whoops?
<moritz> r: sub postfix:<{}>($a) { say "$a bracey brace" }; 42{}
<p6eval> rakudo befe7c: OUTPUT«42 bracey brace»
<timotimo> interesting. how did i trigger a loop there?
<moritz> timotimo: it created a zero-width match, which was then
quantified in the grammar
<timotimo> aaaah
<moritz> timotimo: so it matched the empty postfix all over again
<timotimo> of course.
<moritz> wouldn't that be a cute way to write a debugger?
<moritz> write an empty-string postfix
<moritz> that automatigacally gets inserted everywhere :-)
<timotimo> heh heh
* masak submits rakudobug
<masak> shouldn't be allowed to write empty postfixes, methinks