Explain more what you mean by saying the if is problematic and obsolete ?



-----Original Message-----
From: Bill Brutzman <[email protected]>
To: U2 Users List <[email protected]>
Sent: Thu, Apr 19, 2012 1:35 pm
Subject: Re: [U2] Case Statement with only two cases... or for that matter... 
one case


The case statement has a huge advantage in what really matters... human 
eadability... that is the point.
>From readability follows... reliability, maintainability, and testability... 
etter, cleaner, safer software.
An irony is that while the "if" statement...  is the cornerstone of all 
omputing... the "if" is also a problematic and mostly obsolete construct.
--Bill
-----Original Message-----
rom: [email protected] 
[mailto:[email protected]] 
n Behalf Of Wjhonson
ent: Thursday, April 19, 2012 3:52 PM
o: [email protected]
ubject: [U2] Case Statement with only two cases

s there a point in code like this
BEGIN CASE
  CASE A = "TEST"; GOSUB DO.SOMETHING
  CASE 1; GOSUB DO.SOMETHING.ELSE
ND CASE
versus this
IF A = "TEST" THEN GOSUB DO.SOMETHING ELSE GOSUB DO.SOMETHING.ELSE
Personally I see no advantage in making this a  CASE
Does the rest of the *Universe* agree with me?
______________________________________________
2-Users mailing list
[email protected]
ttp://listserver.u2ug.org/mailman/listinfo/u2-users
______________________________________________
2-Users mailing list
[email protected]
ttp://listserver.u2ug.org/mailman/listinfo/u2-users

_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to