[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Computing Editorial (please read)
- Subject: Re: Computing Editorial (please read)
- From: mjmahon@aol.com (Michael J. Mahon)
- Date: 20 Jan 2003 23:38:05 GMT
- Newsgroups: comp.sys.apple2
- Organization: AOL http://www.aol.com
- References: <b0hr4f$bnk$1@acme.gcfn.org>
- Xref: archiver1.google.com comp.sys.apple2:26339
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/