The second scenario looks to be overcomplicated. It sounds like it's a glorified hash and the $key_obj is the guy that has to do all the work. Create a hierarchy that handles the various kinds of $key_obj's and you should be fine. I vote for Scenario 2.
The Perfect is the Enemy of the Good.
In reply to Re: Selecting one of two implementations
by dragonchild
in thread Selecting one of two implementations
by Tanktalus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |