[Info-vax] Fortran

Dave Froble davef at tsoft-inc.com
Thu Dec 6 01:46:04 EST 2018


On 12/5/2018 10:07 PM, Arne Vajhøj wrote:
> On 12/5/2018 9:12 PM, Dave Froble wrote:
>> On 12/5/2018 9:00 PM, Arne Vajhøj wrote:
>>> On 12/5/2018 8:23 PM, Bill Gunshannon wrote:
>>>> On 12/5/18 1:29 PM, Scott Dorsey wrote:
>>>>> Didn't Knuth say that global variables should be banned?
>>>>
>>>> And Dijkstra said GOTO's should, too.  How did that work out?
>>>
>>> Pretty well.
>>>
>>> Many newer languages does not have GOTO.
>>>
>>> And in those newer languages that does have it, then
>>> its usage is typical extremely rare.
>>
>> We must exist in different worlds ...
>
> You see a lot of code in languages like C# and PHP use GOTO??
>
> Arne
>
>

I like to have well defined exit points.  So in just about everything I 
write, if for no other purpose, there is most likely a GoTo to the exit 
point.

If I have a program with multiple sections, while there are various 
methods to dispatch to selected sections, GoTo is a quite valid method.

I will mention that I avoid GoTo to implement logic and such, which is 
where the problems arise.

I really like two things is code.  Simplicity and structure.

-- 
David Froble                       Tel: 724-529-0450
Dave Froble Enterprises, Inc.      E-Mail: davef at tsoft-inc.com
DFE Ultralights, Inc.
170 Grimplin Road
Vanderbilt, PA  15486



More information about the Info-vax mailing list