Null object: Difference between revisions

Line 955:
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.
 
{{works with|langur|0.10}}
<lang langur>val (.x, .y) = (true, null)
Prior to 0.10, multi-variable declaration/assignment would use parentheses around variable names and values.
 
<lang langur>val (.x, .y) = (true, null)
 
writeln .x == null
990

edits