Re: Euphoria features

new topic     » goto parent     » topic index » view thread      » older message » newer message

----- Original Message -----
From: Lucius L. Hilley III <lhilley at CDC.NET>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Sunday, November 14, 1999 1:32 PM
Subject: Re: Euphoria features


>     This goto request reminds me of some of BASIC's kludges.
> INPUT A
> on A goto 1, 2, 55, 312
>
> I despise jumping around a program in such a disorderly fashion.

That's disorderly? How?? Can you replace that one line with another that is
less "disorderly" and yet does the same function? I mean other than the line
i gave, which is "goto A". tongue
You would have loved the basic compiler i wrote, you could goto a target in
the middle of a line of code. hehe smile

> (IMO): if this were to be implemented into Euphoria, it would
> greatly degrade the simplicity that everything is linear or
> calling a function/procedure.  With GOTO, your second line of
> code can be abort(0) yet still have a fully functioning program.
> YUK.
>
> Try this on for size.
>
> GOTO Start
> abort(0)--never used.
>
> Start:
> puts(1, "The above was easily bypassed and is useless.")

Then why did you write it that way? <blink>

> GOTO's are one of the strongest components of spaghetti code.
> Without goto, creating spachetti code is more difficult.

Hmm,, "more difficult" means not impossible... Maybe we should remove all
the other ways of writing spagetti code too, cause someone might, someday
and somewhere, write something you can't read? Maybe local vars should be
eliminated, cause they can be used over and over again in different
functions. Holy cow!,, the word "clothes" , sheesh, that could mean almost
*anything* in the way of apparel!!!, brb, i am going to write a strongly
worded email to Websters!!

Kat

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu