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

2263Re: [jslint] Re: option.type

Expand Messages
  • mathew
    Jun 6, 2011
    • 0 Attachment
      On Sun, Jun 5, 2011 at 21:01, Martin Cooper <mfncooper@...> wrote:

      > if (false == filePath) {
      > ...
      > var cmd = 'cd ' + filePath;
      > (I don't know why the test was written like that.)

      It's a habit some programmers like to get into, because in C or Java if you
      forget one of the '=' signs by mistake you get a compile-time failure rather
      than a runtime error.

      This doesn't apply in JavaScript, of course, though you're at least
      guaranteed an obvious runtime error rather than a subtle one.


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