I don't understand. What do the operators == and === have to do with an error message targeted to the user? Complaining that the doc_ids parameter is not defined as a list, isn't explicit enough? (which means it's undefined, a string, an integer, or whatever)
On Tue, Nov 16, 2010 at 6:36 PM, Benoit Chesneau <[email protected]> wrote: > On Tue, Nov 16, 2010 at 7:28 PM, Benoit Chesneau <[email protected]> wrote: >> On Tue, Nov 16, 2010 at 7:19 PM, Filipe David Manana >> <[email protected]> wrote: > s a list, you are less descriptive. >>>> >>> >>> If it's not defined than it's definitely not a list. Does it make sense? >> I didn't say that your sentence didn't have sense. But I meant to be >> more descriptive. Afterall that's the reason you want to use === >> rather than == in js. >> > > To be clear , I prefer to give all reasons why this error happened > rather than using a mind shortcut and while I'm on it maybe it could > be better if i just give the right reason? The only reason I don't > actually is because I wanted to use less code > -- Filipe David Manana, [email protected], [email protected] "Reasonable men adapt themselves to the world. Unreasonable men adapt the world to themselves. That's why all progress depends on unreasonable men."
