couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benoit Chesneau <bchesn...@gmail.com>
Subject Re: svn commit: r1005513 - /couchdb/trunk/share/www/script/test/bulk_docs.js
Date Fri, 08 Oct 2010 12:15:16 GMT
On Fri, Oct 8, 2010 at 1:33 PM, Filipe David Manana <fdmanana@apache.org> wrote:
>>
>> In my opinion, you don't need the === in this case imo == is enough
>> since we compare 2 values, doesn't it ?
>
> Do you see any issue with it?
> Afaik, the use of === and !== are standard best practices (recommended
> by Crockford).
> But yes, for this case, use of == and === is the same.
>

No issue with it. Just a *minor* detail I wanted to tell you.

I like to use the right operator, when needed.  Here "==" was enough,
so why not just using it. I understand your argument anyway, so no
issue *at all*.

- benoit

Mime
View raw message