Yes, the implementation is poor, but it is meant to be a simple demonstration. I tend to choose dispatch-table type patterns for such things, and if the normalization/etc. were more complex I might even have "private" subroutines to deal with the attributes.
My post is more targetted toward interface than internal implementation; still, your point is a good one.
In reply to Re^3: The Accessor Heresy
by radiantmatrix
in thread The Accessor Heresy
by Roy Johnson
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |