[Haskell-cafe] To [] Or Not To []
JK
jerzy.karczmarczuk at unicaen.fr
Sat Mar 11 00:42:07 UTC 2017
Hi.
Le 11/03/2017 à 00:28, Olaf Klinke a écrit :
> Actually, your negative abstract turns out to be for a quite positive article. List are like iterators, that's the essence, and as long as you are iterating, it's fine to use []. The prominence of singly linked lists in Haskell has tought me to write my data processing programs in a streaming style.
*Yes.* I've been teaching not just "data processing" - after all almost
everything we program is "data processing", no?... but such concrete
stuff as physics simulation (diff. eqs.), some other numerics
(asymptotic expansions, etc.) signal processing (including sound
generation), and I liked to present several examples in a *dataflow
style* with plenty of co-recursive contraptions. Haskell lazy lists were
natural, concise, and easy to manipulate. We enjoyed it, wrong or not.
Nothing is perfect, not only mister Nobody; calling ANY approach to
programming "wrong" is sectarian. A professional coder working on a
concrete project may say bad words about anything he wishes, but for a
teacher this is a pedagogical sin, and inefficient programs can be more
inspiring than some "correct" doctrines.
Jerzy Karczmarczuk
---
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast.
https://www.avast.com/antivirus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20170311/0bcbcf50/attachment.html>
More information about the Haskell-Cafe
mailing list