Null object: Difference between revisions
Content added Content deleted
Langurmonkey (talk | contribs) (added langur language example) |
Langurmonkey (talk | contribs) |
||
Line 903: | Line 903: | ||
</pre> |
</pre> |
||
=={{header| |
=={{header|langur}}== |
||
Null can be compared for directly, using equality operators, or can be checked with the isNull() function. Database operators (ending with ? mark) propagate null. A null in an expression test is a non-truthy result. |
Null can be compared for directly, using equality operators, or can be checked with the isNull() function. Database operators (ending with ? mark) propagate null. A null in an expression test is a non-truthy result. |
||
<lang |
<lang langur>var (.x, .y) = (true, null) |
||
writeln .x == null |
writeln .x == null |