3 ms·
The only time I remember using indexed list access in Haskell was on a dirty script that would break in 3 months anyhow. They are just ugly, and throw a huge am
by marcosdumay 10y ago
The only time I remember using indexed list access in Haskell was on a dirty script that would break in 3 months anyhow. They are just ugly, and throw a huge amount of safety away, for no big gain at all.
Mainstream languages will gain much more from better iterators than by a ton of effort that just proves your indexes are within bounds.
- groovy2shoes 10y agoWhile I agree that better iterators are desirable, iteration is far from the only operation on arrays (or any other collection for that matter).