RogerBW, #Raku #RakuLang people: I have a class which must be initialised before use, but that initialisation is more complex than simply setting field values. I can do this right now with
my $foo = MyClass.new; $foo.init(stuff);
but I find that ugly. I haven't found any examples of anew
method that will do the standard object setup and then run my initialisation code on this new instance of it. Is this a thing? Pointers welcome.
Add comment