Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change Match!from to Match.capture-from
Because the NQP .from still refers to the raw $!from attribute, and we needed a smarter .from method that would introspect <( and )> captures *without* updating the upper $!from attribute. However, this clashes with grammars that use a rule called "from", so the method was initially made private. However, Str.subst needs to be able to access the introspected .from as well. So moritz++ suggested renaming the method to "capture-from". This solidifies a subtle semantic change in Match.from. Not sure whether this change will cause more ecosystem breakage, then just simply saying that you cannot use "from" as a name of a rule. All of this also for "to".
- Loading branch information
Showing
1 changed file
with
19 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters