in reply to Re: Perl code generation with PerlBean (continued)
in thread Perl code generation with PerlBean (continued)
Secondly, doesn't your module generate the always-present my $self = shift?
-
Remember that most methods are fully generated by PerlBean -with the my $self line. Typically, you'd write yourself as few as possible methods (the fun ones, and not the boring ones of course.)
-
You don't always need my $self. For instance for static methods.
-
It's not that much work to type yank a my $self = shift; line from another method.
-
As it's not too much work making this the default behavior for empty methods, I could. Then again, what would be the purpose of an empty method?
Vincenzo