No I ask for use-cases justifying to deviate from Class->method() as default.
Anything goes in Perl, but I'd like to know why a pattern was applied.
I remember the Moo(se) folks using namespace::clean to wipe out any subs which are not part of the class, because otherwise they could be called as instance methods via the ISA chain.
A Class->method() OTOH is capable to handle that case by checking if the first parameter $_[0] was blessed.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
In reply to Re^4: Procedural vs OOP modules (namespace::clean)
by LanX
in thread Procedural vs OOP modules
by Bod
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |