News for hackers. Stuff that matters.
Re:Do I really want to be using a language where memoize is ... by sesqu on Tuesday July 20, 2010 @02:33PM (#1533003)

  > Boolean([])
  true
  > []==false
  true
  > [] == ![]
  true
How the hell does that work? Aren't all non-booleans implicitly cast?

edit: rephrased

Re:Do I really want to be using a language where memoize is ... by chc on Tuesday July 20, 2010 @03:42PM (#1533224)
It's because the == operator converts its arguments to be of the same type, and it does so in a rather unintuitive way. This makes it both inefficient and frequently baffling. You pretty much always want === instead, which does not allow comparisons between different types.