News for hackers. Stuff that matters.
Re:“2015 will be the year that Perl 6 officially launches fo... by weinzierl on Saturday November 08, 2014 @02:59PM (#8577976)
I'm curious about the state machine you can type up in a few characters and be a first class citizen. Can you give or link to an example?
Re:“2015 will be the year that Perl 6 officially launches fo... by zzzcpan on Saturday November 08, 2014 @03:07PM (#8578002)
I believe he was talking about regular expressions being first class citizens in Perl:

  ($v1, $v2) =~ /a(b|c)d(e)/;
(regular expressions are state machines)
Re:“2015 will be the year that Perl 6 officially launches fo... by weinzierl on Saturday November 08, 2014 @05:44PM (#8578376)
Ok, I get that. I wrote simple state machines for simple parsing tasks and was just hoping there was an easier way.
Re:“2015 will be the year that Perl 6 officially launches fo... by kbenson on Friday November 14, 2014 @02:11PM (#8608906)
Oh, in Perl 6 there are, grammars[1].

[1]: http://en.wikibooks.org/wiki/Perl_6_Programming/Grammars