This may or may not tweak the refactoring knob back toward methods; Perl 6 is still not Java, after all.class Foo { has $!salary; method !private_method ($factor = 2) { $!salary *= $factor } method salary { self!private_method(10); $!salary } } my Foo $foo .= new(:salary(100)); say "salary is ", $foo.salary;
In reply to Re^2: Language features affect style
by TimToady
in thread Language features affect style
by tilly
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |