Skip to content

Instantly share code, notes, and snippets.

@codesections
Created August 19, 2020 11:22
Show Gist options
  • Save codesections/445e2a043c4ffe4a4cfbb7aac75d5462 to your computer and use it in GitHub Desktop.
Save codesections/445e2a043c4ffe4a4cfbb7aac75d5462 to your computer and use it in GitHub Desktop.
sub postfix:<‽>($a) { $ = $a};
class A { method n { Nil };
method fine { self }
method non-nil { 42}
};
say A.new.fine‽
.non-nil;
say A.new.n‽
.non-nil;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment