|
|
| laziness, impatience, and hubris | |
| PerlMonks |
Re^2: Anyone migrated to the new 'class' way of OOP?by cavac (Prior) |
| on Aug 25, 2025 at 10:42 UTC ( [id://11166109]=note: print w/replies, xml ) | Need Help?? |
|
I'm also sticking with bless() for now. For my use cases, it is still the most flexible way of doing things. I often need to run code before and after SUPER::new(), and i have quite a few modules that have multiple new() functions, depending on how i want/need to initialize them. And factory classes, multiple inheritance, etc... Not to mention that rewriting a lot of my (tested and proven to work) codebase would be a huge undertaking, and mixing OO systems within a project seems like a very bad idea.
PerlMonks XP is useless? Not anymore: XPD - Do more with your PerlMonks XP Also check out my sisters artwork and my weekly webcomics
In Section
Meditations
|
|
||||||||||||||||||||||||||||||