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

RE: [jslint] Re: "Stopping, unable to continue" errors on mulitple variabl e assigment

Expand Messages
  • Jakob Kruse
    Hi, In my opinion ”var z = x = ”test”;” is bad programming style which can mask several errors. I’m glad that JSLint will warn me if I accidentally
    Message 1 of 1 , Apr 28 3:58 AM
    • 0 Attachment
      Hi,

      In my opinion ”var z = x = ”test”;” is bad programming style which can mask several errors. I’m glad that JSLint will warn me if I accidentally write code like this.

      /Jakob


      From: jslint_com@yahoogroups.com [mailto:jslint_com@yahoogroups.com] On Behalf Of Stepan Reznikov
      Sent: 28. april 2009 10:42
      To: jslint_com@yahoogroups.com
      Subject: [jslint] Re: "Stopping, unable to continue" errors on mulitple variable assigment





      > It will continue to reject
      > var z = x = "test";

      Maybe JSLint should reject it only when the x variable has not been
      declared before?


      [Non-text portions of this message have been removed]
    Your message has been successfully submitted and would be delivered to recipients shortly.