Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.teledata-fn.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="ISO-8859-1" Message-ID: <30008540.2uy7m7UenZ@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Sun, 14 Oct 2012 01:58:49 +0200 User-Agent: KNode/4.4.11 Content-Transfer-Encoding: 7Bit X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. <1877322.0HhiMAB5S9@PointedEars.de> <39715420.plu8v4RzNR@PointedEars.de> Followup-To: comp.lang.javascript MIME-Version: 1.0 Lines: 49 NNTP-Posting-Date: 14 Oct 2012 01:58:49 CEST NNTP-Posting-Host: 8fff4e66.newsspool4.arcor-online.net X-Trace: DXC=V@OQK_c7f@N[6=1B@oB@@@4IUKK@_GUdg2RDnIFb87RBT;]_PE X-Complaints-To: usenet-abuse@arcor.de Xref: csiph.com comp.lang.javascript:16625 Patricia Shanahan wrote: > Thomas 'PointedEars' Lahn wrote: >> Patricia Shanahan wrote: >>> You seem to be confused about my position. I am not saying that no Block >>> can be a Statement, just that a Block can be used in situations in which >>> a Statement would not be accepted, and so is not always a Statement. >> >> Ex falso quodlibet. A Block (statement) *cannot* be used in situations >> in which a Statement would not be accepted. For example, the braces in >> >> function x (y) >> { >> >> } >> >> are _not_ produced by /Block/, they are produced as part of >> >> | FunctionDeclaration : >> | function Identifier ( FormalParameterListopt ) { FunctionBody } >> >> The braces in >> >> var foo = { >> bar: 42 >> }; >> >> are _not_ produced by /Block/ either, they are produced as part of >> >> | ObjectLiteral : >> | { } >> | { PropertyNameAndValueList } >> | { PropertyNameAndValueList , } >> >> (formerly, /ObjectInitialiser/, and a trailing comma was a syntax error). > > Have you considered the TryStatement productions? I have, and that is indeed a case where any other statement but a Block statement is not allowed. However, that does not prove your argument, only its premise. PointedEars -- Anyone who slaps a 'this page is best viewed with Browser X' label on a Web page appears to be yearning for the bad old days, before the Web, when you had very little chance of reading a document written on another computer, another word processor, or another network. -- Tim Berners-Lee