|
|
Warp wrote:
> Darren New <dne### [at] sanrrcom> wrote:
>> Right. Structured programming is where each statement has an entrance
>> and an exit. That's what (IIRC) Dijkstra was talking about.
>
> Dijkstra advocated structured programming as a replacement for the
> heavily "goto-based" programming of the time. Structured programming
> introduced concepts which are common in most current languages. The
> more the reason to not to use goto...
Exactly. And the structured programming he introduced also eschewed
early returns, break, continue, etc. That's all I'm trying to say. :-)
If your language has *no* unstructured control-flow statements (such as
early returns, break, continue, etc) then you probably wind up using
goto about as much as you wind up using globals.
--
Darren New / San Diego, CA, USA (PST)
"That's pretty. Where's that?"
"It's the Age of Channelwood."
"We should go there on vacation some time."
Post a reply to this message
|
|