On Jun 1, 2015, at 4:16 PM, Michael David Crawford <mdcrawf...@gmail.com> wrote:
> 
> The paper entitled "Goto Considered Harmful" - by Dijkstra? - was
> criticizing spaghetti code.  At the time, commonly used programming
> languages did not have control flow statements like "if/then/else",
> "do/while", "while" or "switch/case".  Instead, other than fortran's
> "do/continue" you had to roll your own control flow; often it was done
> quite poorly.

Minor nit... Dijkstra was one of the authors of Algol 60 which had plenty
of control flow statements.  He explicitly mentions goto with respect to
algol in his “considered harmful” note:

   "Finally I should like to record (as I remember it quite distinctly) how
    Heinz Zemanek at the pre-ALGOL meeting in early 1959 in Copenhagen quite
    explicitly expressed his doubts whether the go to statement should be
    treated on equal syntactic footing with the assignment statement. To a
    modest extent I blame myself for not having then drawn the consequences
    of his remark.”

However, he follows that with this:

   "I remember having read the explicit recommendation to restrict the use of
    the go to statement to alarm exits, but I have not been able to trace it;
    presumably, it has been made by C. A. R. Hoare.”

which sounds like the “religion” being discussed.   My feelings on that topic
are private, as I feel most religious beliefs should be :)

Marc
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to