I think we need all support we can get to fight Google on this, so I welcome Brave here actually.

Use this link to avoid going to Twitter:

https://nitter.kavin.rocks/BrendanEich/status/1684561924191842304

you are viewing a single comment's thread
view the rest of the comments
[–] 1 point 3 years ago*

yes, that is a solid logic, one that I also applied and expected to be the result.

that is until a Vue component started complaining that I am passing in a number for a prop that expects a boolean.

turns out the result of that code is actually: 0, because javascript

of course if you flip it and try

false && 0 && 1

then you get false, because that's what you really want in a language, where && behaves differently depending on what is on what side.

  • source
  • parent