[Haskell-cafe] To [] Or Not To []

Ben Franksen ben.franksen at online.de
Thu Mar 16 22:22:16 UTC 2017

Am 11.03.2017 um 01:42 schrieb JK:
> 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, i have always liked your style and i am very glad you wrote this 
response, the attitude of which i find refreshingly unconventional. 
(Note i am not free of the sin of, sometimes hastily, condemning what i 
find distasteful.)


More information about the Haskell-Cafe mailing list