Icon+Unicon/Intro: Difference between revisions

m
Line 67:
* convertible or not - convertible through explicit type conversion
 
==== &null ====
&null (immutable, uncoercible, unconvertable) is unique. It is a data type with only a single value, one instance only. While this may sound odd at first, &null is at the core of Icon/Unicon and contributes to the power and robustness of the language. Specifically, &null arose to overcome a short coming that any [[SNOBOL4]] programmer will be familiar with. Consider the following SNOBOL code:
 
<lang Snobol> numb1 = 2
Line 81:
write( "abc", &null) # no error as write ignores &null </lang>
 
The power of &null comes from the simple null/non-null tests of which more anon.
 
==== integer ====
Anonymous user