2 ms·
now !== then
by shawndumas 17y ago
now !== then
- SandB0x 17y agoWhich language uses !== instead of != ?
- carbocation 17y agoPHP. The !== checks for equality and for type. For example, it is true in PHP that 0 == false, but it is also true that 0 !== false.
- jcl 17y agoAlso Javascript: https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Operators/Comparison_Operators https://developer.mozilla.org/en/Core_JavaScript_1.5_Referen...
- shawndumas 17y agoCorrect.
- ericd 17y agoBut given that now and then are both of type Temporal, he should still go for !=.
- deleted 17y ago[deleted]
- shawndumas 17y agoIt's strict not equal in JavaScript. 'Returns true if the operands are not equal and/or not of the same type.' . '==' and '!=' are coercive in JavaScript -- as in: 5 == "5" -> true 5 != "5" -> false 5 === "5" -> false 5 !== "5" -> true
- ericd 17y agoHis point seems to be that nothing fundamental has changed except for people's expectations. People being slightly more odiferous has never been a showstopper before. And you say it's unhygenic... there's nothing dangerous about not showering daily. It's purely an aesthetic thing. I do it for that reason, but I don't kid myself about its necessity.
- boredguy8 17y agoFundamentally, people's expectations have changed. Context, as always, is king.