in reply to At what level of structural complexity is Moose a win-win?
The question I ask is "Is this data structure clearer as an object?" For a simple stack, the answer is often no. For a value such as currency—even if the only attributes of the object are two integers to represent dollars and cents—the answer is often yes. Remember that associating a distinct identity with a data structure adds clarity and helps reduce bugs.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: At what level of structural complexity is Moose a win-win?
by Corion (Patriarch) on Sep 29, 2010 at 15:22 UTC | |
by chromatic (Archbishop) on Sep 29, 2010 at 16:12 UTC | |
Re^2: At what level of structural complexity is Moose a win-win?
by BrowserUk (Patriarch) on Sep 29, 2010 at 16:09 UTC |
In Section
Seekers of Perl Wisdom