Preamble: I'm not convinced of XP. And the OP design makes me shake my head in wonder as to why one would want this behaviour.
That said, I don't see this as YAGNI. YAGNI simply cannot apply to public APIs. For example, Tim Bunce may not need all the APIs provided by DBI, but users of DBI may, among all of them, need those APIs. Different APIs that do things the same way, but return their results differently (selectall_arrayref vs selectall_hashref vs ...) aren't "needed", but sure as heck provide significant amounts of syntactic sugar that simplify oft-used paradigms while leaving flexibility to do things slightly differently if you feel/have the need.
In reply to Re^2: Using references as hash keys
by Tanktalus
in thread Using references as hash keys
by Ovid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |