Jump to content

Null object: Difference between revisions

added Ol
(Added Dyalect programming language)
(added Ol)
Line 1,361:
"abcd" isNull
: testNull { | a | a ifNull: [ "Variable value is null" println ] ;</lang>
 
=={{header|Ol}}==
Ol has no null object in task meaning sense. To indicate the "unassigned" variable state typically used #false because this is only value that triggers the 'unless' and 'if not'.
 
The builtin null and #null (that a same) means "an empty list". Important note: in contrast with CL the null means #true in 'if' statement!
 
 
=={{header|ooRexx}}==
Cookies help us deliver our services. By using our services, you agree to our use of cookies.