POV-Ray : Newsgroups : povray.off-topic : C++ structuring help.... : Re: C++ structuring help.... Server Time
10 Oct 2024 23:18:22 EDT (-0400)
  Re: C++ structuring help....  
From: Darren New
Date: 22 Mar 2008 19:58:44
Message: <47e5ab44$1@news.povray.org>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.