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


Groups > comp.lang.javascript > #28882

Why terminate do-while with a semi colon?

Newsgroups comp.lang.javascript
Date 2015-11-13 00:30 -0800
Message-ID <ff132af3-4cb1-4d31-bdff-6ffcceeab5e6@googlegroups.com> (permalink)
Subject Why terminate do-while with a semi colon?
From RobG <rgqld@iinet.net.au>

Show all headers | View raw


ECMA-262[1] defines a do-while loop as:

  IterationStatement : do Statement while ( Expression ) ;

I can't find a case where the terminal semicolon is required. Can someone suggest one (or more)?


1. http://ecma-international.org/ecma-262/6.0/index.html#sec-do-while-statement

-- 
RobG

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


Thread

Why terminate do-while with a semi colon? RobG <rgqld@iinet.net.au> - 2015-11-13 00:30 -0800
  Re: Why terminate do-while with a semi colon? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-11-13 10:43 +0100
    Re: Why terminate do-while with a semi colon? John Harris <niam@jghnorth.org.uk.invalid> - 2015-11-15 15:12 +0000
  Re: Why terminate do-while with a semi colon? Scott Sauyet <scott.sauyet@gmail.com> - 2015-11-13 10:19 -0800
    Re: Why terminate do-while with a semi colon? RobG <rgqld@iinet.net.au> - 2015-11-14 03:28 -0800
      Re: Why terminate do-while with a semi colon? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-11-14 16:17 +0100

csiph-web