how strict is Array.array?

Simon Peyton-Jones simonpj@microsoft.com
Fri, 16 Nov 2001 07:23:02 -0800


Well, it's clearly a design choice.  But in general laziness does not
come for
free.  The choice made by the Haskell designers was that the 'array'
function
can consume and explore all its input before producing any result.   It
just
give more scope to the implementor.   Nothing too deep.

Simon

| -----Original Message-----
| From: Johannes Waldmann [mailto:joe@isun.informatik.uni-leipzig.de]=20
| Sent: 12 November 2001 20:29
| To: haskell@haskell.org
| Subject: how strict is Array.array?
|=20
|=20
| I was surprised to note that
|=20
|     bounds $ array (0,1) undefined
|=20
| is undefined ( rather than (0,1) ) - why is this?
|=20
| just curious,
| --=20
| -- Johannes Waldmann ----=20
| http://www.informatik.uni-leipzig.de/~joe/ --
| --=20
| joe@informatik.uni-leipzig.de -- phone/fax (+49) 341 9732 204/252 --
|=20
| _______________________________________________
| Haskell mailing list
| Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell
|=20