Skip to content

Instantly share code, notes, and snippets.

@agiliq
Created July 16, 2009 11: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/148368 to your computer and use it in GitHub Desktop.
Save agiliq/148368 to your computer and use it in GitHub Desktop.
scala> None == None
res3: Boolean = true
scala> None == 10
<console>:5: warning: comparing non-null values of types object None and Int using `==' will always yield false
None == 10
^
res4: Boolean = false
scala> None > 10
<console>:5: error: value > is not a member of object None
None > 10
^
scala> None < 10
<console>:5: error: value < is not a member of object None
None < 10
^
scala> 10 == 10
res7: Boolean = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment