[Please trim the irrelevant parts of the message you're replying to!]
> I would like to take this opportunity for suggesting a new feature for > Firebug: detecting a single equal sign in a conditional statement. > This is an annoying thing in the language-specification, but we have to live > with it. > On the other hand it happens too often, that through a type-error there is > but a single =, which of course assigns the value instead if testing it. > I would not want Firebug to do this: that is not its job. There are other tools that will (I'm pretty sure that jslint will do it) > Firefox could detect it and mark it as a possible cause of errors. Many > high-level languages recognize the context and accept the single equal-sign. > Javascript does not. Not languages I use. == is comparison, = is assignment. Since in many languages an assignment returns a value, = is permitted inside a conditional, though it may be confusing and not what you want. I certainly don't want the language processor 'correcting' my code (JS already gets this wrong with its automatic insertion of semicolons). I don't want the debugger to warn me of things that its limited mind thinks might not have been what I intended. -- You received this message because you are subscribed to the Google Groups "Firebug" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/firebug?hl=en.
