Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: