Skip to content

Instantly share code, notes, and snippets.

@agiliq
Created July 15, 2009 20:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agiliq/147958 to your computer and use it in GitHub Desktop.
Save agiliq/147958 to your computer and use it in GitHub Desktop.
Clojure 1.0.0-
user=> nil
nil
user=> (== 10 10)
true
user=> (== nil 10)
java.lang.NullPointerException (NO_SOURCE_FILE:0)
user=> (== 10 nil)
java.lang.NullPointerException (NO_SOURCE_FILE:0)
user=> (> nil 10)
java.lang.NullPointerException (NO_SOURCE_FILE:0)
user=> (< nil 10)
java.lang.NullPointerException (NO_SOURCE_FILE:0)
user=> (< 2 3)
true
user=> (> 2 3)
false
user=>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment