Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Ask HN: Perl 6: Do you use it, how do you like it, what do you do with it?. Parent comment
In Perl 6 regexes are seen as a type of method (that is they are literally implemented as a type of method in Rakudo)
Grammars tend to look like a cross between BNF, and well Perl. https://stackoverflow.com/a/41770672/1337
Perl 6 regexes have longest term matching using |, or sequential matching like Perl 5 using ||.
Since regexes are methods, they can take arguments as well.
There are no comments on this comment yet.
In Perl 6 regexes are seen as a type of method (that is they are literally implemented as a type of method in Rakudo)
Grammars tend to look like a cross between BNF, and well Perl. https://stackoverflow.com/a/41770672/1337
Perl 6 regexes have longest term matching using |, or sequential matching like Perl 5 using ||.
Since regexes are methods, they can take arguments as well.