[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Computing Editorial (please read)



Dave Althoff Jr wrote:

<snip>
>Well, in the case of my ObjectPAL code, where I want the GOTO is usually
>because I completed some condition testing and now I want to skip over the
>whole rest of the script and get to the end.  I learned a long time ago
>about the importance of single exit points...but I have ObjectPAL code
>where the script ends with...
>
>>                  endif
>>               endif
>>            endif
>>         endif
>>      endif
>>   endif
>> endmethod
>
>It's hardly clean code.  And I come from a world without ELSE so my gut
>feeling is to get out of IF constructs as quickly as possible

This is why I have always appreciated languages that have the ELSEIF
or ELIF construct, so that a simple sequence of mutually exclusive
conditional actions does not nest endlessly.

-michael

Check out amazing quality 8-bit Apple sound on my
Home page:  http://members.aol.com/MJMahon/