Path: csiph.com!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Dr J R Stockton Newsgroups: comp.lang.javascript Subject: Re: Programming style question Date: Sat, 27 Oct 2012 19:44:30 +0100 Organization: Home Lines: 36 Message-ID: References: <722e889us0ep0mra233907giq2nnolqhge@4ax.com> Mime-Version: 1.0 Content-Type: text/plain;charset=us-ascii Injection-Info: mx04.eternal-september.org; posting-host="530603207bb5dc63eadbc45c88da0024"; logging-data="11041"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/35nDJUW96/VXt2rM8hwJvUy4680QvutE=" User-Agent: Turnpike/6.05-S () Cancel-Lock: sha1:oMpElgiHUkfitpMsbI+KJEXS0dE= Xref: csiph.com comp.lang.javascript:16916 In comp.lang.javascript message , Thu, 25 Oct 2012 20:14:48, Gene Wirchenko posted: >On Thu, 25 Oct 2012 17:03:19 -0700, Patricia Shanahan >wrote: > >>On 10/25/2012 10:41 AM, Dr J R Stockton wrote: >>> In comp.lang.javascript message >> com>, Wed, 24 Oct 2012 10:17:13, Gene Wirchenko posted: >>> >>>> >>>> Some of these idioms are showstoppers, because how do you look >>>> something up if you do not know its name and it is mainly an >>>> arrangement of symbols? >>> >>> You look it up in the index of a book, where the symbols should come >>> before the words. Four of my five JavaScript books are like that, one >>> having numbers before symbols. The fifth, and most used, has no index. > > I was more concerned with the idiom. If one does not know the >name, it is hard to look it up. If you find the index entry, the name should be beside it; and the page indicated by number should tell you more. Wikipedia has a "vertical bar" page, which includes "whilst a double vertical bar (a || b) denotes a _(short-circuited)_ _logical or_.". Google knows a lot about '"double vertical bar"' and '"double vertical bar" JavaScript'; some of it will be right. -- (c) John Stockton, nr London UK Reply address via Home Page. news:comp.lang.javascript FAQ . jscr maths, dates, sources. TP/BP/Delphi/jscr/&c, FAQ items, links.