Icon+Unicon/Intro: Difference between revisions

Content added Content deleted
Line 62: Line 62:
=== Data Types ===
=== Data Types ===
==== &null ====
==== &null ====
&null 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.
&null 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:

&null arose to overcome a short coming that any [[SNOBOL4]] programmer will be familiar with. Consider the following SNOBOL code:


<lang Snobol> numb1 = 2
<lang Snobol> numb1 = 2