Create a gist now

Instantly share code, notes, and snippets.

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