Null object: Difference between revisions

Content added Content deleted
No edit summary
(→‎{{header|Lasso}}: adding null type comparison tests)
Line 510: Line 510:
additional properties : _n@i and _n?i are i; _n`v is _n
additional properties : _n@i and _n?i are i; _n`v is _n
</lang>
</lang>


=={{header|Lasso}}==
<lang Lasso>local(x = string, y = null)
#x->isA(::null)
// 0 (false)

#y->isA(::null)
// 1 (true)

#x == null
// false

#y == null
//true

#x->type == 'null'
// false

#y->type == 'null'
//true</lang>


=={{header|Logo}}==
=={{header|Logo}}==