[clean-list] How to construct unboxed arrays of primitive types?

Siegfried Gonzi siegfried.gonzi@kfunigraz.ac.at
Wed, 22 Aug 2001 16:41:45 +0200


Mike Kent mkent44@home.com wrote:


> "Where in the documentation do I look for the answer to this?":


The Clean-book and therein chapter 3 deals with arrays. Also of help is
the Clean language report 1.3.

If you need pattern-matching in arrays you should study Zoerner's CLAS
library. It has been a great help for me, especially there you learn how
to use pattern-matching and destructive array updates. Especially
Clas3.icl is of interest. Thorsten has also a very exemplary programming
style.

Digression:

Though I din't figure out what on earth drove the Clean developer: 

|s==g = blabla
|otherwise = blabla  

and

|s==g = blabla
= blabla

are the same.


Why in hell this overgenerous syntax-overloading? "Let" is a next
example of that.


S. Gonzi