forked from rakudo/rakudo
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
A new .assuming implementation
.assuming now produces closures with populated signatures. .assuming now supports * and Nil primers with special behaviors. .assuming will try to bind primer arguments to a partial signature: ... currently it will mix most failures into the returned closure. ... eventually we can phase-in throwing them instead. For now, subsignatures are mostly ignored during this bind. For now, constraints pointing to captured types are stripped. Where clauses and default value exprs are not evaluated until runtime invoke. This currently uses EVAL to construct the closure, which is LTA, but it gives us something functional/testable to work forward from. Roast tests available at https://github.com/skids/roast/tree/assuming
- Loading branch information
Showing
1 changed file
with
307 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