
Dear Cafe, I wrote a text (well, you might call it a rant) on the tragic over-use of lists in Haskell, based on my experience in programming and teaching. http://www.imn.htwk-leipzig.de/~waldmann/etc/untutorial/list-or-not-list/ * If your program accesses a list by index (with the !! operator), then your program is wrong. * If your program uses the length function, then your program is wrong. * If your program sorts a list, then your program is wrong. * If you wrote this sort function yourself, then it is doubly wrong. * The ideal use of a list is such that will be removed by the compiler. * The enlightened programmer writes list-free code with Foldable. Have fun reading, and avoiding lists from here on! - J.W.

Have fun reading, and avoiding lists from here on!
Except maybe the haskell-cafe list. 2017-03-09 16:07 GMT+01:00 Johannes Waldmann < johannes.waldmann@htwk-leipzig.de>:
Dear Cafe,
I wrote a text (well, you might call it a rant) on the tragic over-use of lists in Haskell, based on my experience in programming and teaching.
http://www.imn.htwk-leipzig.de/~waldmann/etc/untutorial/list-or-not-list/
* If your program accesses a list by index (with the !! operator), then your program is wrong. * If your program uses the length function, then your program is wrong. * If your program sorts a list, then your program is wrong. * If you wrote this sort function yourself, then it is doubly wrong. * The ideal use of a list is such that will be removed by the compiler. * The enlightened programmer writes list-free code with Foldable.
Have fun reading, and avoiding lists from here on!
- J.W. _______________________________________________ Haskell-Cafe mailing list To (un)subscribe, modify options or view archives go to: http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe Only members subscribed via the mailman list are allowed to post.

That was quite reasonable and very interesting and insightful reading. Thanks! P.S. Will you share something about Strings?

P.S. Will you share something about Strings?
there is a short section on string(like) data types at http://www.imn.htwk-leipzig.de/~waldmann/etc/untutorial/data/ but I am really not an expert on the finer points. - J.W.

On Thu, Mar 9, 2017 at 10:07 AM, Johannes Waldmann < johannes.waldmann@htwk-leipzig.de> wrote:
* The enlightened programmer writes list-free code with Foldable.
I'd like to point out that FTP is still very recent and there are quite a few learning resources that know nothing of it. -- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
participants (5)
-
Brandon Allbery
-
Geraldus
-
Johannes Waldmann
-
Richard A. O'Keefe
-
Robin Palotai