in reply to Re^3: Easy dispatch tables. (still easier)
in thread Easy dispatch tables.
Do you really think those 3 counter-examples are really easier to read than the 2-line examples using Dispatch.pm?
I could mutter stuff about abstraction and orthagonality, but I'm not sure if you'd buy into it. How about another reason: that it makes the concept of dispatch tables easier to create and be less prone to error. Your approaches all take either a high level of perl knowledge, or are simply not as easy to use, or are bulky. Sure, this module doesn't do anything spectacular, and sure, its pretty easy to write equivalant code. However, this module was designed to help abstract and de-couple code, which it does a good job at. So, I'll have to disagree with your opinion that Dispatch.pm is useless. I enjoy using it, at least.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Easy dispatch tables. (can() be even easier)
by Aristotle (Chancellor) on Apr 03, 2003 at 08:25 UTC | |
by jryan (Vicar) on Apr 03, 2003 at 21:59 UTC | |
by Aristotle (Chancellor) on Apr 04, 2003 at 15:25 UTC |