This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SQLite version 3.6.10 | |
Enter ".help" for instructions | |
Enter SQL statements terminated with a ";" | |
sqlite> select null; | |
sqlite> select null>10, null<10, null=null, 10=10 as data; | |
|||1 | |
sqlite> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql> select null; | |
+------+ | |
| NULL | | |
+------+ | |
| NULL | | |
+------+ | |
1 row in set (0.00 sec) | |
mysql> select null>10, null<10, null=null, 10=10 as data; | |
+---------+---------+-----------+------+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scala> 10 == 10 | |
res6: Boolean = true | |
scala> null > 10 | |
<console>:5: error: value > is not a member of Null | |
null > 10 | |
^ | |
scala> null < 10 | |
<console>:5: error: value < is not a member of Null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Perl> undef == 10; | |
Use of uninitialized value in numeric eq (==) at (eval 2) line 3. | |
Perl> undef > 10; | |
Use of uninitialized value in numeric gt (>) at (eval 3) line 3. | |
Perl> undef < 10; | |
Warning: Use of "undef" without parentheses is ambiguous at (eval 4) line 3. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Test{ | |
public static void main(String[] args){ | |
//System.out.println(null); | |
//System.out.println(null > 10); | |
//System.out.println(null < 10); | |
System.out.println(null == null); | |
System.out.println(10 == 10); | |
} | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
groovy | |
http://www.twitpic.com/agmo4/full |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hugs> Nothing | |
Nothing | |
Hugs> Nothing == Nothing | |
True | |
Hugs> Nothing > 10 | |
ERROR - Cannot infer instance | |
*** Instance : Num (Maybe a) | |
*** Expression : Nothing > 10 | |
Hugs> Nothing < 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
php> echo(false) | |
php> echo(true) | |
1 | |
php> echo(null) | |
php> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |