Created
August 19, 2020 11:22
-
-
Save codesections/445e2a043c4ffe4a4cfbb7aac75d5462 to your computer and use it in GitHub Desktop.
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
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