# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #73214] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=73214 >
<masak> rakudo: say '(foo' ~~ / '(' ~ ')' [foo] / <p6eval> rakudo 5e5969: OUTPUT«Unable to parse _block48, couldn't find final ')' [...] <masak> why does everything in regexes indicate falure with a False-valued $/, except for goals, which indicate failure by throwing an exception? <pmichaud> maybe should return failure instead of throwing exception <masak> yes, please. <masak> my real-world situation to back this up is a test file with a grammar parse wrapped in a method call which checks whether the syntax of an expression is correct. I only expect the method call to return a Bool, not to blow up. <pmichaud> I'll have to think a bit about how to pull that off. But feel free to file this as a ticket :) <masak> gladly. * masak submits rakudobug <pmichaud> well, I can certainly get it to fail the match. I'm not sure where the message goes, though.