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


Groups > comp.lang.javascript > #29385

Re: Using break in while loops bad habit?

Path csiph.com!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail
From Ben Bacarisse <ben.usenet@bsb.me.uk>
Newsgroups comp.lang.javascript
Subject Re: Using break in while loops bad habit?
Date Thu, 21 Jan 2016 01:50:56 +0000
Organization A noiseless patient Spider
Lines 39
Message-ID <8737tr1z0f.fsf@bsb.me.uk> (permalink)
References <94ec98fa-9956-48c9-ad34-de8d07cd6419@googlegroups.com> <d2afc3d1-f6d2-4502-867a-ba28a1d506e9@googlegroups.com> <87io2tf0xq.fsf@bsb.me.uk> <ce9e7dab-baf1-49a5-a565-6ae644cce678@googlegroups.com> <87mvs3b1q9.fsf@bsb.me.uk> <834018da-34c4-40f8-9c83-34f70c3de279@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain
Injection-Info mx02.eternal-september.org; posting-host="017616aa25f81ec581c44d76d61ba2f3"; logging-data="3954"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/nkYge7Hw/rykcHIKr9cOUR2FORfRljho="
Cancel-Lock sha1:jHnF/I94PIMMxqK8whP6CkWcWro= sha1:aWknl4DGv9kAj8vR7RdMKEMhIaA=
X-BSB-Auth 1.43f3241ec923a3895fef.20160121015056GMT.8737tr1z0f.fsf@bsb.me.uk
Xref csiph.com comp.lang.javascript:29385

Show key headers only | View raw


"Michael Haufe (TNO)" <tno@thenewobjective.com> writes:

> On Monday, January 18, 2016 at 4:50:47 AM UTC-6, Ben Bacarisse wrote:
>> "Michael Haufe (TNO)" writes:
<snip>
>> > I took your advice and sent an email to Martin Richards [2] from my
>> > .edu account. With any luck he would be willing and able to give some
>> > more explicit insight on the time period and this feature. It was a
>> > tumultuous period indeed.
>> 
>> Thanks.  I'm be interested to hear what he says (and I wonder why I
>> never thought to ask myself).  It seems unlikely that break was invented
>> for BCPL, but you never know...  CPL seems to have had a rather chaotic
>> design, so it may have had many features come and go.  And what
>> influences there were around at the time is hard to determine now.
>
> I got a reply today from Martin Richards. CPL did indeed have
> 'BREAK'.

Ah, right.

> To partially quote:
>
> "CPL did have a break command to cause an exit from a repetitive
> command such as while or until. As far as I remember it did not have
> an equivalent of continue, but the equivalent loop command was added
> to BCPL early in 1967."
> [...]
> "The introduction of break in CPL was almost certainly influenced by
> Dijkstra's paper..."
>
> He also provided the following document (see page 5):
>
> <http://www.cl.cam.ac.uk/~mr10/cpl2bcpl.pdf>

Very interesting.  Thank you.

-- 
Ben.

Back to comp.lang.javascript | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Using break in while loops bad habit? jonas.thornvall@gmail.com - 2016-01-16 04:19 -0800
  Re: Using break in while loops bad habit? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-01-16 13:59 +0100
    Re: Using break in while loops bad habit? Philip Herlihy <thiswillbounceback@you.com> - 2016-01-16 15:41 +0000
      Re: Using break in while loops bad habit? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-01-16 16:41 -0800
  Re: Using break in while loops bad habit? Philip Herlihy <thiswillbounceback@you.com> - 2016-01-16 13:02 +0000
    Re: Using break in while loops bad habit? Tim Streater <timstreater@greenbee.net> - 2016-01-16 13:43 +0000
      Re: Using break in while loops bad habit? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-01-16 14:56 +0100
        Re: Using break in while loops bad habit? Gene Wirchenko <genew@telus.net> - 2016-01-18 09:39 -0800
          Re: Using break in while loops bad habit? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-01-18 19:16 +0100
            Re: Using break in while loops bad habit? Gene Wirchenko <genew@telus.net> - 2016-01-23 10:32 -0800
              Re: Using break in while loops bad habit? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-01-24 00:49 +0100
                Re: Using break in while loops bad habit? Gene Wirchenko <genew@telus.net> - 2016-01-25 21:36 -0800
                Re: Using break in while loops bad habit? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-01-26 10:12 +0100
                Re: Using break in while loops bad habit? Gene Wirchenko <genew@telus.net> - 2016-01-26 11:11 -0800
                Re: Using break in while loops bad habit? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-01-26 22:48 +0100
                Re: Using break in while loops bad habit? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-01-26 15:03 -0800
                Re: Using break in while loops bad habit? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-01-27 00:51 +0100
              Re: Using break in while loops bad habit? Norman Peelman <npeelman@cfl.rr.com> - 2016-01-23 21:00 -0500
                Re: Using break in while loops bad habit? Gene Wirchenko <genew@telus.net> - 2016-01-25 21:39 -0800
                Re: Using break in while loops bad habit? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-01-26 10:17 +0100
                Re: Using break in while loops bad habit? Doc O'Leary  <droleary@2015usenet1.subsume.com> - 2016-01-26 17:10 +0000
                Re: Using break in while loops bad habit? Doc O'Leary  <droleary@2015usenet1.subsume.com> - 2016-01-26 16:44 +0000
                Re: Using break in while loops bad habit? Gene Wirchenko <genew@telus.net> - 2016-01-26 11:17 -0800
                Re: Using break in while loops bad habit? Doc O'Leary  <droleary@2015usenet1.subsume.com> - 2016-01-27 05:00 +0000
                Re: Using break in while loops bad habit? Gene Wirchenko <genew@telus.net> - 2016-01-27 09:29 -0800
            Re: Using break in while loops bad habit? Norman Peelman <npeelman@cfl.rr.com> - 2016-01-23 20:53 -0500
              Re: Using break in while loops bad habit? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-01-24 10:28 +0100
              Re: Using break in while loops bad habit? Gene Wirchenko <genew@telus.net> - 2016-01-25 21:41 -0800
      Re: Using break in while loops bad habit? Robert Heller <heller@deepsoft.com> - 2016-01-16 09:06 -0600
        Re: Using break in while loops bad habit? Tim Streater <timstreater@greenbee.net> - 2016-01-16 17:31 +0000
        Re: Using break in while loops bad habit? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-01-16 16:52 -0800
  Re: Using break in while loops bad habit? Aleksandro <aleksandro@gmx.com> - 2016-01-16 12:43 -0300
  Re: Using break in while loops bad habit? Silvio <silvio@internet.com> - 2016-01-16 17:51 +0100
    Re: Using break in while loops bad habit? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-01-17 09:09 +0100
      Re: Using break in while loops bad habit? John Harris <niam@jghnorth.org.uk.invalid> - 2016-01-17 11:19 +0000
      Re: Using break in while loops bad habit? Silvio <silvio@internet.com> - 2016-01-18 00:40 +0100
        Re: Using break in while loops bad habit? Andrew Poulos <ap_prog@hotmail.com> - 2016-01-18 13:53 +1100
          Re: Using break in while loops bad habit? Silvio <silvio@internet.com> - 2016-01-18 07:59 +0100
  Re: Using break in while loops bad habit? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-01-16 16:34 -0800
    Re: Using break in while loops bad habit? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-01-17 01:29 +0000
      Re: Using break in while loops bad habit? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-01-17 19:22 -0800
        Re: Using break in while loops bad habit? Tim Streater <timstreater@greenbee.net> - 2016-01-18 10:00 +0000
        Re: Using break in while loops bad habit? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-01-18 10:50 +0000
          Re: Using break in while loops bad habit? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-01-20 16:40 -0800
            Re: Using break in while loops bad habit? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-01-21 01:50 +0000
      Re: Using break in while loops bad habit? Dr J R Stockton <reply1600@merlyn.demon.co.uk.invalid> - 2016-01-18 22:55 +0000
        Re: Using break in while loops bad habit? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-01-18 16:10 -0800
    Re: Using break in while loops bad habit? Gene Wirchenko <genew@telus.net> - 2016-01-18 09:46 -0800
      Re: Using break in while loops bad habit? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-01-18 10:16 -0800
      Re: Using break in while loops bad habit? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-01-18 19:18 +0100
        Re: Using break in while loops bad habit? Gene Wirchenko <genew@telus.net> - 2016-01-23 10:33 -0800
          Re: Using break in while loops bad habit? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-01-24 00:51 +0100
            Re: Using break in while loops bad habit? Gene Wirchenko <genew@telus.net> - 2016-01-25 21:46 -0800
              Re: Using break in while loops bad habit? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-01-26 10:22 +0100
                Re: Using break in while loops bad habit? Gene Wirchenko <genew@telus.net> - 2016-01-26 11:19 -0800
      Re: Using break in while loops bad habit? Doc O'Leary  <droleary@2015usenet1.subsume.com> - 2016-01-19 16:48 +0000

csiph-web