Null object: Difference between revisions
Content added Content deleted
Thundergnat (talk | contribs) m (Fix Perl 6 -> Raku in comments) |
Langurmonkey (talk | contribs) |
||
Line 953: | Line 953: | ||
=={{header|langur}}== |
=={{header|langur}}== |
||
Null can be compared for directly, using equality operators, or can be checked with the isNull() function. |
Null can be compared for directly, using equality operators, or can be checked with the isNull() function. Operators ending with a ? mark propagate null. A null in an expression test is a non-truthy result. |
||
<lang langur>val (.x, .y) = (true, null) |
<lang langur>val (.x, .y) = (true, null) |