rspec/rules/S1440/description.adoc
Arseniy Zaostrovnykh 7ca29f686f Force linebreaks
2021-02-02 15:02:10 +01:00

4 lines
287 B
Plaintext

The ``++==++`` and ``++!=++`` operators do type coercion before comparing values. This is bad because it can mask type errors. For example, it evaluates ``++' \t\r\n' == 0++`` as ``++true++``.
It is best to always use the side-effect-less ``++===++`` and ``++!==++`` operators instead.