-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compare strings with strict equality operators #2582
Conversation
b6399cd
to
b81547f
Compare
Why? If it doesn't change the behavior, then it's pointless code churn. If it does, then it's a breaking change. |
This patch makes sure that the strings are compared with strict equality operator.
This patch makes sure that the strings are compared with strict equality operator.
This patch makes sure that the strings are compared with strict equality operators.
This patch makes sure that the strings are compared with strict equality operators.
b81547f
to
301e14f
Compare
agreed, I'm somewhere between -1 and -0 on this, unless there's a measurable performance gain from doing this then I'm not a fan, sorry for the second negative comment in a row @thefourtheye |
lgtm, it's one step in the direction of unification (style, if nothing else). |
I'm not convinced that the majority agrees on the "use |
@seishun if it were a breaking change then it would be picked up by the CI. And I think the code churn is not pointless, because |
Also, he applied it partially because last time he did it not-so-partially and got bad feedback on that. |
Not true, we don't have 100% coverage and we certainly don't test anything near the number of weird ways people use Node and are expecting it to behave. We have a diverse ecosystem and are always running in to edge-cases and subtle bugs encountered by novel uses. |
@rvagg Agreed with you. 👎 on the PR then. |
Also -1. Just make changes like this when you're modifying the code for more meaningful reasons. |
Yeah... it's hard to agree to change these once they are there. We should just make sure we always land with strict equality, unless explicitly sating why otherwise. |
Previous effort: #2392
CI Run: https://jenkins-iojs.nodesource.com/job/node-test-pull-request/189/