Thread Subject: the "GOTO" statement

Subject: the "GOTO" statement

From: Abdulkadir Ovanimoh Ibrahim

Date: 29 Aug, 2008 18:07:02

Message: 1 of 10

Matlab really need a go to statement make it useful in
programs that design and check for certain criteria, as
encountered in civil engineering.
Go to would really be of great help.

Subject: the

From: John D'Errico

Date: 29 Aug, 2008 18:23:03

Message: 2 of 10

"Abdulkadir Ovanimoh Ibrahim" <qadr79@yahoo.com> wrote in message
<g99ds6$i7r$1@fred.mathworks.com>...
> Matlab really need a go to statement make it useful in
> programs that design and check for certain criteria, as
> encountered in civil engineering.
> Go to would really be of great help.

Or, just perhaps, what is needed is for novice
programmers to learn to program without
recourse to a goto.

help if
help else
help elseif
help switch
help while
help break

There are a few other things you might look
at too. You might just find you become a
better programmer for having done so.

John

Subject: the

From: someone

Date: 29 Aug, 2008 18:54:02

Message: 3 of 10

"Abdulkadir Ovanimoh Ibrahim" <qadr79@yahoo.com> wrote in
message <g99ds6$i7r$1@fred.mathworks.com>...
> Matlab really need a go to statement make it useful in
> programs that design and check for certain criteria, as
> encountered in civil engineering.
> Go to would really be of great help.

It may be comming:

<<http://blogs.mathworks.com/loren/2006/04/01/goto-coming-
at-long-last-vectorized-no-less/>>

I always thought a comefrom command would be useful also.

Subject: the

From: Steve Amphlett

Date: 30 Aug, 2008 09:17:01

Message: 4 of 10

"someone " <someone@somewhere.net> wrote in message
<g99gka$mhp$1@fred.mathworks.com>...
> "Abdulkadir Ovanimoh Ibrahim" <qadr79@yahoo.com> wrote
in
> message <g99ds6$i7r$1@fred.mathworks.com>...
> > Matlab really need a go to statement make it useful in
> > programs that design and check for certain criteria, as
> > encountered in civil engineering.
> > Go to would really be of great help.
>
> It may be comming:
>
> <<http://blogs.mathworks.com/loren/2006/04/01/goto-coming-
> at-long-last-vectorized-no-less/>>
>
> I always thought a comefrom command would be useful also.

Oh, the endless hours of fun I've had debugging Fortran
code that uses computed GOTOs.

Subject: the "GOTO" statement

From: tpl@eng.cam.ac.uk (Tim Love)

Date: 30 Aug, 2008 16:42:30

Message: 5 of 10

"Abdulkadir Ovanimoh Ibrahim" <qadr79@yahoo.com> writes:

>Matlab really need a go to statement make it useful in
>programs that design and check for certain criteria, as
>encountered in civil engineering.
>Go to would really be of great help.

Could you write some pseudo-code to show what you mean?
I'm sure civil engineering isn't the only discipline where
such situations arise.

Subject: the

From: Gavrilo Bozovic

Date: 1 Sep, 2008 08:46:02

Message: 6 of 10

"someone " <someone@somewhere.net> wrote in message
<g99gka$mhp$1@fred.mathworks.com>...
> "Abdulkadir Ovanimoh Ibrahim" <qadr79@yahoo.com> wrote in
> message <g99ds6$i7r$1@fred.mathworks.com>...
> > Matlab really need a go to statement make it useful in
> > programs that design and check for certain criteria, as
> > encountered in civil engineering.
> > Go to would really be of great help.
>
> It may be comming:
>
> <<http://blogs.mathworks.com/loren/2006/04/01/goto-coming-
> at-long-last-vectorized-no-less/>>
>
> I always thought a comefrom command would be useful also.
>

here's for beginner programmers who are tempted to use the goto:

http://xkcd.com/292/

Subject: the

From: Gavrilo Bozovic

Date: 1 Sep, 2008 14:21:02

Message: 7 of 10

"someone " <someone@somewhere.net> wrote in message
<g99gka$mhp$1@fred.mathworks.com>...
> "Abdulkadir Ovanimoh Ibrahim" <qadr79@yahoo.com> wrote in
> message <g99ds6$i7r$1@fred.mathworks.com>...
> > Matlab really need a go to statement make it useful in
> > programs that design and check for certain criteria, as
> > encountered in civil engineering.
> > Go to would really be of great help.
>
> It may be comming:
>
> <<http://blogs.mathworks.com/loren/2006/04/01/goto-coming-
> at-long-last-vectorized-no-less/>>
>
> I always thought a comefrom command would be useful also.
>

Yeah, a comefrom would definitely help! For the moment, my m
files are always somewhat too easy to debug...

And I'm sure marco would find a lot of applications to goto
/ comefrom commands!

back to serious: It's weird that the MATLAB guys are
considering to implement it...

Subject: the

From: Steven Lord

Date: 2 Sep, 2008 03:58:10

Message: 8 of 10


"Gavrilo Bozovic" <gavrilo.bozovic@helbling.ch> wrote in message
news:g9gtoe$68e$1@fred.mathworks.com...
> "someone " <someone@somewhere.net> wrote in message
> <g99gka$mhp$1@fred.mathworks.com>...
>> "Abdulkadir Ovanimoh Ibrahim" <qadr79@yahoo.com> wrote in
>> message <g99ds6$i7r$1@fred.mathworks.com>...

*snip*

>> <<http://blogs.mathworks.com/loren/2006/04/01/goto-coming-
>> at-long-last-vectorized-no-less/>>

*snip*

> back to serious: It's weird that the MATLAB guys are
> considering to implement it...

You might want to look at the date on which Loren posted that blog posting
... and then if that doesn't explain it, read this Wikipedia page:

http://en.wikipedia.org/wiki/April_Fools%27_Day

--
Steve Lord
slord@mathworks.com

Subject: the

From: Gavrilo Bozovic

Date: 2 Sep, 2008 06:09:02

Message: 9 of 10

"Steven Lord" <slord@mathworks.com> wrote in message
<g9idki$qvv$1@fred.mathworks.com>...
>
> "Gavrilo Bozovic" <gavrilo.bozovic@helbling.ch> wrote in
message
> news:g9gtoe$68e$1@fred.mathworks.com...
> > "someone " <someone@somewhere.net> wrote in message
> > <g99gka$mhp$1@fred.mathworks.com>...
> >> "Abdulkadir Ovanimoh Ibrahim" <qadr79@yahoo.com> wrote in
> >> message <g99ds6$i7r$1@fred.mathworks.com>...
>
> *snip*
>
> >> <<http://blogs.mathworks.com/loren/2006/04/01/goto-coming-
> >> at-long-last-vectorized-no-less/>>
>
> *snip*
>
> > back to serious: It's weird that the MATLAB guys are
> > considering to implement it...
>
> You might want to look at the date on which Loren posted
that blog posting
> ... and then if that doesn't explain it, read this
Wikipedia page:
>
> http://en.wikipedia.org/wiki/April_Fools%27_Day
>
> --
> Steve Lord
> slord@mathworks.com
>
>

OMG... okay, I should have guessed that something was wrong
with this article :D

to try and not to look completely ridiculous: I hadn't read
the whole article! However, the goto(NaN) is really something!

Subject: the "GOTO" statement

From: D. Ismay

Date: 4 Sep, 2008 01:30:02

Message: 10 of 10

Abdulkadir Ovanimoh Ibrahim wrote on 29-Aug-08 11:07 :
> Matlab really need a go to statement make it useful in
> programs that design and check for certain criteria, as
> encountered in civil engineering.
> Go to would really be of great help.


HAHAHAHAHAHAHA!!!

...does the phrase, 'spaghetti code' mean anything to you?

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com