purescript-contrib/purescript-book

chapter 10 double negation intended or typo?

chriz-zeller opened this issue · 2 comments

A similar law holds for expressions of type `Int` `Number` and `String` - expressions of type `Int` or `Number` evaluate to non-null JavaScript numbers, and expressions of type `String` evaluate to non-null JavaScript strings. Expressions of type `Int` will evaluate to integers at runtime, even though they cannot not be distinguished from values of type `Number` by using `typeof`.

It says "cannot not"

  • either it is a complicated way to say "can"
  • or it is a typo meaning it "can not"

It's a typo.

It was fixed by #424