/ <digit>+ / is what I thought it should be.

{ ... } is what rakudo current gives, which from the point of view of runnable code and comprehensible output, are wrong.


Carl Mäsak via RT wrote:
Richard (>):
The output from .perl for a regex could be more useful than currently.

[...]

Perhaps,

Regex { <digit>+ }

That does not seem to be legal Perl 6 to me. The idea of .perl is to
output runnable code, after all. How about this instead?

/ <digit>+ /

Reply via email to