Perl 6 - the future is here, just unevenly distributed

IRC log for #6macros, 2016-06-19

| Channels | #6macros index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
01:27 FROGGS_ joined #6macros
01:48 ilbot3 joined #6macros
18:41 vendethiel- joined #6macros
21:15 raiph joined #6macros
21:21 raiph carl says: "don't run any side effects until you're sure you're in the right rule."
21:21 raiph ---> carl moves a `:my $*insub = True;` line
21:21 cognominal joined #6macros
21:22 * raiph .oO( aha, so is that another reason why Larry chose `:my ...` syntax -- to be strangely consistent with `:` (NYI) cut operator? )
21:23 masak raiph: it's the <.newpad> after it that's the side effect
21:23 masak as of e2dd3e66d0ac59d0af57e33ccc6d4a44aaf8d81b, it now comes *after* the '(', which in the case of method prop rules is the "signal" that we're in a method prop rule and not an identifier prop rule
21:24 masak raiph: the rule *used* to say "read an identifier, create a new pad, then read an opening paren"
21:24 masak raiph: it now says "read an identifier, read an opening paren, then create a new pad"
21:25 masak now factor backtracking into those sequences and you see why it matters :)
21:25 raiph the regex engine will backtrack for you but doesn't undo side effects
21:25 masak not this one, no
21:26 raiph does 007 have the equivalent of Rakudo's World?
21:27 masak no; and strangely that has never occurred to me
21:27 masak it only has static lexpads right now
21:27 raiph I know I ought read the docs. I've read the readme of course. :)
21:33 raiph Larry could presumably rapid fire some rules of thumb for addressing "don't run any side effects until you're sure you're in the right rule." in P6 grammar/actions code

| Channels | #6macros index | Today | | Search | Google Search | Plain-Text | summary