Created
February 25, 2021 15:31
-
-
Save Whateverable/70cd76fbc93ac94b403652f059abebcc to your computer and use it in GitHub Desktop.
Whateverable
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
2021-02-25T08:05:08Z #raku <codesections> guifa very cool. One thing I haven't gotten my head around, though, with traits is when to use a new variant of `is` vs a new trait altogether. E.g., could you have replaced `multi sub trait_mod:<is> (Attribute \attr, :$lazy)` with `multi sub trait_mod:<lazy> (Attribute \attr)`? Or would that not work? If it does work, is there a reason to prefer one to the other? (Other than choosing between calling it with `is lazy` vs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment