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.
In reply to Re: At what level of structural complexity is Moose a win-win?
by chromatic
in thread At what level of structural complexity is Moose a win-win?
by dwm042
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |