Subject: | How about native traits for design patterns? |
It would be nice to write some native methods for
(a) hash-backed unordered and unique arrays (for the purpose of finding unique elements in the set), or for
(b) ordered arrays (good for subset type structures).
Often people simply create a hash and set the value to undef for it. I think it would be nice to provide this functionality, through Native traits.
Ideas?
--
Evan Carroll
System Lord of the Internets
http://www.evancarroll.com