News for hackers. Stuff that matters.
Re:Compiler Warnings by loeg on Friday January 25, 2019 @03:29PM (#19002191)
Meh. They're different languages with different expectations. "is" is distinct from "==" in both, and Python gets "==" right (obviously). Javascript doesn't really have any high ground here[0]. (In contrast, Python:)

  >>> [] == False
  False
  >>> object() == False
  False
  >>> "" == False
  False
  >>> {} == False
  False
They're just different.

[0]: https://www.youtube.com/watch?v=et8xNAc2ic8

There are no comments on this comment yet.