class A { has $.a; method TWEAK(:$!a = "foo") { } } dd A.new; # A.new(a => "foo") dd A.new(a => "bar"); # A.new(a => "bar")
In reply to Re^2: Raku question: "Moose is Perl", but it sure ain't Raku.
by Anonymous Monk
in thread Raku question: "Moose is Perl", but it sure ain't Raku.
by Cow1337killr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |