Re: Goto?

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

Jeremy Cowgar wrote:
> 
> Kat has brought up the subject of Goto and while we are talking about 4.0 and
> new keywords, let's just talk about this one too.
> 
> I have mixed emotions about it. Goto in some situations can be a very valuable
> construct but it can also be a construct that novice programmers can really
> get in trouble with causing hours of unnecessary debugging.
> 
> So, I guess the real decision is does Euphoria take a stand at trying to
> protect
> the programmer from writing bad code or does it provide to them power and if
> the programmer wishes to shoot himself with it, they can.
> 
> I know this will be a controversial subject. All I am doing is the same thing
> I've done with things in the past. Raise the subject and let's talk about it.
> Since it is controversial, let's not get upset. All we are doing is talking
> about it. Let's not revert to name calling, yelling or getting upset. It's
> just
> a talk about goto.
> 
> There is an existing wiki page that you may wish to read before commenting.
> I am unsure of it's original author:
> 
> <a href="http://euwiki.ayo.biz/Goto">http://euwiki.ayo.biz/Goto</a>
> 
> --
> Jeremy Cowgar
> <a href="http://jeremy.cowgar.com">http://jeremy.cowgar.com</a>

I don't think it's "protecting the programmer from writing bad code" as much as
it is "protecting the maintainer from maintaining bad code".

Yes, I'm relying on Derek Parnell's argument that a piece of code's human
readability is very important.

I mean, if we all wanted to shoot ourselves in the foot we might as well keep
using C. smile

--
A complex system that works is invariably found to have evolved from a simple
system that works.
--John Gall's 15th law of Systemantics.

"Premature optimization is the root of all evil in programming."
--C.A.R. Hoare

j.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu