On Mon, Oct 24, 2011 at 8:02 PM, Steve Fabian <> wrote:
> IMHO this design is clearer and easier to decipher for a person than doing it with IFF blocks. Consequently it would be easier to debug.
Easier for whom? Do you routinely pass along copies of BTMs you have
written to others who might have to make sense of your code?
Whether I use an IF-ELSE block or a CASE statement depends upon the
processing I need to do. If CASE statement results in simplified
logic and more compact code, I'll use it, but I'm perfectly willing to
use an IF-ELSE block if not. Your suggestion looks like it would
require about the same amount of code as an IF-ELSE block doing the
same thing.
I'm careful to structure and document my code, so understanding it
later is not an issue.
It sounds a lot like you're fixated on a theoretical ideal here which
is of dubious value in practice. Just how often do you see yourself
actually *using* the constructs you desire? (And just how often do
you see anyone *else* using them?)
Back in the 4DOS days, Rex commented that about 10% of the feature
requests made him say "Of *course*! Why didn't *I* think of that?",
80% were of only of value in special circumstances to a few users, and
10% produced "What would you want to do *that* for?" reactions.
This sounds a lot like one of the 80%.
_____
Dennis