Just another Perl shrine | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
As far as I knew, "le" is a proper French word, meaning "the". I don't dispute that your code returns blessed objects. There is more to that than writing object-oriented code though. As per your update:
That alone is a warning sign. If the different objects do different things, then they should be instances of separate classes. Your "objects" apparently don't have any object methods, so why are you using "objects" rather than plain old hashes?
package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name
In reply to Re^3: RFC on how I'm doing when it comes to writing objects?
by tobyink
|
|