Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created February 25, 2021 15:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Whateverable/70cd76fbc93ac94b403652f059abebcc to your computer and use it in GitHub Desktop.
Save Whateverable/70cd76fbc93ac94b403652f059abebcc to your computer and use it in GitHub Desktop.
Whateverable
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