Give an example of, with what you would replace the If Then Else


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


1.Problematic...  [a] I run into sloppy if statements often... it is sometimes 
ifficult for me to infer what the programmer was trying to accomplish. 

                        I would like to see
                                If XX then
                                                                   Gosub YY     
                                                                        
                                End else
                                                                   Gosub ZZ
                        End
                        I often see shortcuts and fragmented if statements.
                        Some languages require a semicolon to specify the end 
of a line.  Some 
anguages use curly braces to specify the beginning and end of say a function    
                [b] This problem gets exacerbated with nested if statements.
2. Obsolete... I look forward to the day when programmers start to realize 
hat... for the reasons cited... and others... that IF statements are bad 
rogramming practice.... perhaps one notch above the goto statement.
--Bill

----Original Message-----
rom: [email protected] 
[mailto:[email protected]] 
n Behalf Of Wjhonson
ent: Thursday, April 19, 2012 4:57 PM
ubject: Re: [U2] Case Statement with only two cases... or for that matter... 
ne case

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

_______________________________________________
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