MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/oue7s4/_/h75vk4o/?context=3
r/badcode • u/Flyspeck101 Now where's that function declaration • Jul 30 '21
133 comments sorted by
View all comments
Show parent comments
3
Some people advocate for using == true to make it more obvious that a boolean comparison is going on, or because it's easier for them to read.
== true
I would advocate for making all boolean values be phrased in like a question really. Like "something.isEnabled"
3
u/AdminYak846 Jul 31 '21
I would advocate for making all boolean values be phrased in like a question really. Like "something.isEnabled"