Re: Default args in custom constructor

2015-09-05 Thread Philip Hazelden
Oh, I'd been intending to explore that before sending but forgot. Thanks. I currently think that's the best alternative to duplicating defaults, but still more verbose and less intuitive than I'd hope for. On Sat, Sep 5, 2015 at 12:57 AM Timo Paulssen wrote: > Have you considered hash flattenin

Re: Default args in custom constructor

2015-09-04 Thread Timo Paulssen
Have you considered hash flattening into argument lists yet? method new(Int $a) { my %args; with $a { %args<$a> = $a } self.bless(|%args); } Does that help you forward at all? - Timo