Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!80g2000cwy.googlegroups.com!not-for-mail
From: "NZTideMan" <mulgor@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to do GOTO in Matlab
Date: 15 Dec 2006 17:29:26 -0800
Organization: http://groups.google.com
Lines: 24
Message-ID: <1166232566.239827.324200@80g2000cwy.googlegroups.com>
References: <1165778984.266098.310630@73g2000cwn.googlegroups.com>
NNTP-Posting-Host: 202.78.152.105
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
X-Trace: posting.google.com 1166232572 19282 127.0.0.1 (16 Dec 2006 01:29:32 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Sat, 16 Dec 2006 01:29:32 +0000 (UTC)
In-Reply-To: <m3ac1ohmei.fsf@coyote.llan.ll.mit.edu>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Maxthon; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: 80g2000cwy.googlegroups.com; posting-host=202.78.152.105;
Xref: news.mathworks.com comp.soft-sys.matlab:384069




>
> > The number of (negative) reactions raised every time the
> > GOTO issue resurfaces is a clear evidence of the bad
> > conscience of those who deny its utility.

No, you're wrong there.
It's not my conscience at all.
It's bitter experience.
About 15 years ago I was given a Fortran 4 code that was about 2,000
lines long, with not one comment line - I was told: comments are for
quiche-eaters, real programmers don't need them.  The code was full of
GOTO's and computed GOTO's, with branches from the middle of the code
to the top, then back down to 3/4 way through, etc, etc.  The technical
name for this is "spaghetti code", which is a very apt description.
Unravelling all those strands took me weeks and convinced me of the
need to improve my own programming ways.  As a result, I have never
used a GOTO since, and will never do so.  And actually, with properly
structured code, there is no need to, ever.

So, Mr GOTO, I attribute your advocacy/need for GOTO's to be a
demonstration of your lack of code-writing skills.  Improve those
skills and you won't need GOTO's.