3 ms·
For me, that's similar to writing if(var == true) { } It's more verbose than necessary, but not wrong.
by _ikke_ 6y ago
For me, that's similar to writing
if(var == true) {
}
It's more verbose than necessary, but not wrong.
- iso-8859-1 6y agoIn Python and JavaScript it is also asserting the type of the thing being compared, which, I argue is better code style. It is a mess having to think about all those things being truish.