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


Groups > comp.lang.javascript > #40993

Re: JSLint: "Wrap a ternary expression in parens, ..."

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From ram@zedat.fu-berlin.de (Stefan Ram)
Newsgroups comp.lang.javascript
Subject Re: JSLint: "Wrap a ternary expression in parens, ..."
Date 16 Jul 2022 12:19:51 GMT
Organization Stefan Ram
Lines 22
Expires 1 Apr 2023 11:59:58 GMT
Message-ID <formatting-20220716131733@ram.dialup.fu-berlin.de> (permalink)
References <tapv73$1pkf$1@gioia.aioe.org> <ff42c0ad-120d-4a19-9a04-e4b47f2b0a92n@googlegroups.com> <tasbct$11ej$1@gioia.aioe.org> <formatting-20220715193854@ram.dialup.fu-berlin.de>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 8bit
X-Trace news.uni-berlin.de DJRYIx7je3xZDNZVtSznOgeohtYsksdG1ONheqYsx/1kAj
X-Copyright (C) Copyright 2022 Stefan Ram. All rights reserved. Distribution through any means other than regular usenet channels is forbidden. It is forbidden to publish this article in the Web, to change URIs of this article into links, and to transfer the body without this notice, but quotations of parts in other Usenet posts are allowed.
X-No-Archive Yes
Archive no
X-No-Archive-Readme "X-No-Archive" is set, because this prevents some services to mirror the article in the web. But the article may be kept on a Usenet archive server with only NNTP access.
X-No-Html yes
Content-Language en-US
Accept-Language de-DE, en-US, it, fr-FR
Xref csiph.com comp.lang.javascript:40993

Show key headers only | View raw


ram@zedat.fu-berlin.de (Stefan Ram) writes:
>orb = 
>orb0Btn.checked?   0: 
>orb5Btn.checked?   5:
>orb10Btn.checked? 10: 
>orb15Btn.checked? 15: 
>                  20;

  Or,

orb =
orb0Btn. checked?  0:
orb5Btn. checked?  5:
orb10Btn.checked? 10:
orb15Btn.checked? 15:
                  20;

  . Now, imagine that someone does not know all details of the
  ternary operator well, but has a basic idea of it. In which
  way could he be mislead by this?

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


csiph-web