Null object: Difference between revisions
Content added Content deleted
(→{{header|Ruby}}: added output) |
m (Added the Sidef language) |
||
Line 1,120: | Line 1,120: | ||
<lang scheme>(null? object)</lang> |
<lang scheme>(null? object)</lang> |
||
Note: "null?" here tests whether a value is the empty list. |
Note: "null?" here tests whether a value is the empty list. |
||
=={{header|Sidef}}== |
|||
The absence of a value is represented by a ''nil'' object. |
|||
<lang ruby>var null_obj; # initialized with an implicit 'nil' |
|||
say null_obj.is_a(nil); # true</lang> |
|||
=={{header|Slate}}== |
=={{header|Slate}}== |