-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Those are fairly straightforward, since they (mostly) mimic the semantics of Raku's. The only extra effort we do is ensure at template parse time that we're not mix-matching nameds and positionals in a way that's not allowed by the underlying compiler.
- Loading branch information
1 parent
8463af1
commit f1ed436
Showing
7 changed files
with
82 additions
and
3 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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<:sub foo(:$named, $pos)> | ||
<$named> - <$pos> | ||
</:> |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<:sub foo(:$first, :$second)> | ||
<$first> - <$second> | ||
</:> | ||
<:sub other($a, :$b)> | ||
Both <$a> and <$b> | ||
</:> | ||
<&foo(:first('this'), :second('is'))> | ||
<&foo(:first(1 + 42), :second(2 * (3 * 5)))> | ||
<&foo(:first(.t ~ 's'), :second(.t x 3))> | ||
|
||
<&other('notnamed', :b('named'))> |