Loading ...
Sorry, an error occurred while loading the content.

392Re: [jslint] Re: minor rule relaxation request

Expand Messages
  • Michael Lorton
    Mar 6, 2009
    • 0 Attachment
      True that! Most C-like languages allow the brace-less consequent, but it's evil! Evil, I say!

      Seriously, it's difficult to read and error-prone.


      From: Douglas Crockford <douglas@...>
      To: jslint_com@yahoogroups.com
      Sent: Friday, March 6, 2009 10:44:37 AM
      Subject: [jslint] Re: minor rule relaxation request

      --- In jslint_com@yahoogroups.com, "zoney70" <zoney70@...> wrote:
      > I find the requirement for using braces excessively anal in such if
      > compounds as:
      > if (/*expression*/) {/*single statement*/} else {/*single
      > statement*/}

      My advice is that you get used to it. For the cost of two characters, your code will be less error prone. That is a really good tradeoff.


      Yahoo! Groups Links

      [Non-text portions of this message have been removed]
    • Show all 6 messages in this topic