1.Problematic...  [a] I run into sloppy if statements often... it is sometimes 
difficult 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 languages 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 
that... for the reasons cited... and others... that IF statements are bad 
programming practice.... perhaps one notch above the goto statement.

--Bill


-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Wjhonson
Sent: Thursday, April 19, 2012 4:57 PM
Subject: Re: [U2] Case Statement with only two cases... or for that matter... 
one case


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



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

Reply via email to