Well, both. I guess it's just a personal thing with OOP syntax. I'm in favor of using hashes both as an implementation and an API. But it's tough to do the latter in some cases.
Mainly, the place where the OOP method really breaks down is multidimensional data structures. How is something like $player->{react_before}{poisoned} to be used? $player->react_before->{poisoned}? Something even more awkward?
Either way, I guess the real problem is syntax and I guess the real solution is to find a scheme for real methods that I like. Until proper APIs can be created with tie and hashes, I guess I haven't a choice. Thank you.
In reply to Re^2: Using tie to return value of anonymous sub
by dabreegster
in thread Using tie to return value of anonymous sub
by dabreegster
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |