What is structured programming (was for/while else doesn't make sense)

Lawrence D’Oliveiro lawrencedo99 at gmail.com
Thu Jun 16 21:53:11 EDT 2016


On Thursday, June 16, 2016 at 11:13:14 PM UTC+12, Rustom Mody wrote:

> Please see https://en.wikipedia.org/wiki/Nassi%E2%80%93Shneiderman_diagram
> 
> | Nassi–Shneiderman diagrams are (almost) isomorphic with
> | flowcharts. Everything you can represent with a Nassi–Shneiderman
> | diagram you can also represent with a flowchart.
> 
> which is in line with what I am saying, viz that break/continue/goto are same
> in the sense of being 'unstructured' and therefore do not fit into a
> structured framework like NSDs

This is just a restatement of the “structure theorem”, which proves that structured control statements are mathematically equivalent to gotos, and anything that can be expressed one way can be expressed the other way.

True, but a complete red herring.



More information about the Python-list mailing list