5 ms·
It's cool that Ruby has a === operator, but the fact that it is not a more strict version of == has caused me trouble in the past. In TypeScript === is more st
by adverbly 3y ago
It's cool that Ruby has a === operator, but the fact that it is not a more strict version of == has caused me trouble in the past.
In TypeScript === is more strict, and when I go back and forth between Ruby and TS I have made a mistake in the past by putting a === when I intended a strict equality check.
I wonder if there is a linting setting where you can prevent your code base from ever using it.
- nusaru 3y agoHere you go: https://docs.rubocop.org/rubocop/cops_style.html#stylecaseequality https://docs.rubocop.org/rubocop/cops_style.html#stylecaseeq...
- deleted 3y ago[deleted]