4 ms·
The new developments in Perl syntax mostly solve this by having an explicit separator for invocant specification: method foo ($bar, $baz) { ... } has $sel
by phaylon 15y ago
The new developments in Perl syntax mostly solve this by having an explicit separator for invocant specification:
method foo ($bar, $baz) { ... }
has $self, $bar and $baz, while
method foo ($class: $bar, $baz) { ... }
has $class, $bar and $baz.