Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #101630

Re: while loop vs do while loop reading from the file issue

Newsgroups comp.lang.c
Date 2017-01-13 09:59 -0800
References (17 earlier) <58591225.764390@news.xs4all.nl> <428e33b4-36db-47f6-95a8-b86e9cba819a@googlegroups.com> <kfneg0qwlfs.fsf@x-alumni2.alumni.caltech.edu> <b9478ce8-5425-4524-b8d3-a0dd5cd414f3@googlegroups.com> <kfnfuknqm25.fsf@x-alumni2.alumni.caltech.edu>
Message-ID <ddde21e7-7b6e-41aa-baca-340dad0aced4@googlegroups.com> (permalink)
Subject Re: while loop vs do while loop reading from the file issue
From Malcolm McLean <malcolm.mclean5@btinternet.com>

Show all headers | View raw


On Friday, January 13, 2017 at 10:41:29 AM UTC, Tim Rentsch wrote:
> Malcolm McLean <malcolm.mclean5@btinternet.com> writes:
> 

> I hope this isn't going to lead to another one of those idiotic
> conversations where you insist on a point of terminology and
> how "most people" use it, only to have pushback from most or
> all of the people who respond.  In case you've forgotten here
> is a list to help refresh your memory:
> 
>     Malcolm-style
>     Malcolm-functions
>     Malcolm-logic
>     Malcolm-structured-programming
>     Malcolm-structure
>     Malcolm-class-tree
>     Malcolm-call-tree
>     Malcolm-speak
>     Malcolm-procedures
>     Malcolm-blocks
>     Malcolm-tree
>     Malcolm-constant-character-pointer
> 
> So to be clear, my comments are about "structured programming",
> and (explicitly) given in the context of Dijkstra's monograph
> "Notes on Structured Programming", it having been brought up in
> the thread before any posting of mine.  And in that context, a
> "loop-and-a-half" fits in with other structuring forms like
> while, if-then-else, etc.  Yes, it isn't among the set of forms
> that Dijkstra gives in his monograph.  But it does satisfy the
> various properties he lists, /like I already said/, and since the
> properties are more what NoSP focuses on, it's reasonable to
> identify a "loop-and-a-half" as structured /in the sense that the
> monograph talks about such things/ -- which is what I did.
> 
> I understand you have your own ideas about what certains terms
> mean, or ought to mean, or how "most people" use them, but I'm
> not saying anything about any of those.  What I am saying is
> about how "Notes on Structured Programming" talks about such
> things, and my previous comments are made from this perspective
> (again - like I already said!).
> 
> IMO you would be well advised to pay more attention to what other
> people are saying, rather than insisting on imparting your own
> world view - no matter how strongly or subconsciously you might
> believe it - on what are basically unimportant questions of
> terminology.
>
Loop and a half is your invention. Malcolm-functions are not my invention,
nor is structured programming. I was maybe the first to explicitly say
that except for recursion (which s rare in most structured programs)
a structured program forms a tree, but I can't really claim it as a 
great insight because other people have traditionally used tree-like
notation for the nested blocks. Malcolm-style is my invention or
personality. The rule of three is mine. B64 is my proposal for a near
sub-set of C. The idea of separating IO from functions is mine, though
I doubt I'll prove to have been the first person to make such a proposal.

But loop and a half is your invention. It's your contribution to our understanding
of what structured programming should be.

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: while loop vs do while loop reading from the file issue Malcolm McLean <malcolm.mclean5@btinternet.com> - 2016-12-29 13:25 -0800
  Re: while loop vs do while loop reading from the file issue Ian Collins <ian-news@hotmail.com> - 2016-12-30 10:48 +1300
    Re: while loop vs do while loop reading from the file issue Malcolm McLean <malcolm.mclean5@btinternet.com> - 2016-12-29 16:46 -0800
      Re: while loop vs do while loop reading from the file issue Ian Collins <ian-news@hotmail.com> - 2016-12-30 13:51 +1300
        Re: while loop vs do while loop reading from the file issue Malcolm McLean <malcolm.mclean5@btinternet.com> - 2016-12-29 17:22 -0800
          Re: while loop vs do while loop reading from the file issue Tim Rentsch <txr@alumni.caltech.edu> - 2017-01-13 02:45 -0800
      Re: while loop vs do while loop reading from the file issue BartC <bc@freeuk.com> - 2016-12-30 01:01 +0000
        Re: while loop vs do while loop reading from the file issue Ian Collins <ian-news@hotmail.com> - 2016-12-30 14:04 +1300
        Re: while loop vs do while loop reading from the file issue Malcolm McLean <malcolm.mclean5@btinternet.com> - 2016-12-29 17:23 -0800
  Re: while loop vs do while loop reading from the file issue asetofsymbols@gmail.com - 2016-12-30 00:56 -0800
  Re: while loop vs do while loop reading from the file issue Tim Rentsch <txr@alumni.caltech.edu> - 2017-01-13 02:41 -0800
    Re: while loop vs do while loop reading from the file issue Malcolm McLean <malcolm.mclean5@btinternet.com> - 2017-01-13 09:59 -0800
      Re: while loop vs do while loop reading from the file issue Gareth Owen <gwowen@gmail.com> - 2017-01-13 18:48 +0000
        Re: while loop vs do while loop reading from the file issue Tim Rentsch <txr@alumni.caltech.edu> - 2017-01-15 12:08 -0800
          Re: while loop vs do while loop reading from the file issue Gareth Owen <gwowen@gmail.com> - 2017-01-15 23:09 +0000
            Re: while loop vs do while loop reading from the file issue Richard Heathfield <rjh@cpax.org.uk> - 2017-01-15 23:18 +0000
              Re: while loop vs do while loop reading from the file issue Gareth Owen <gwowen@gmail.com> - 2017-01-15 23:37 +0000
              Re: while loop vs do while loop reading from the file issue raltbos@xs4all.nl (Richard Bos) - 2017-01-18 11:32 +0000
                Re: while loop vs do while loop reading from the file issue Gareth Owen <gwowen@gmail.com> - 2017-01-18 21:25 +0000
      Re: while loop vs do while loop reading from the file issue Keith Thompson <kst-u@mib.org> - 2017-01-13 11:54 -0800
      Re: while loop vs do while loop reading from the file issue Tim Rentsch <txr@alumni.caltech.edu> - 2017-01-15 11:58 -0800

csiph-web