7 ms·
I’m sure that you can find similar articles for Haskell “My real world use-case for loops”. There’s a certain kind of programmer who delights in using language
by zarzavat 4y ago
I’m sure that you can find similar articles for Haskell “My real world use-case for loops”.
There’s a certain kind of programmer who delights in using languages that have something missing, for puristic reasons or the challenge[0]. And sometimes these languages develop religious dogma: not only can you program without loops: it’s better for you too! Like a fad diet.
These diet languages attract other people who perhaps don’t have a broad experience with many paradigms and they believe everything that has been written about the evils of loops.
Finally someone jury-rigs loops back into Haskell. Behold! The unlooped slowly open their eyes and shift out of their slumber. “It turns out loops are actually useful, huh.”
[0] http://prog21.dadgum.com/38.html http://prog21.dadgum.com/38.html
- formerly_proven 4y agoLinux ecosystem and C cough
- youerbt 4y agoThis is such a biased view. Java doesn't have functions and you have to work around that (by treating your classes as namespaces). Python doesn't have a type system and you have to deal with that (by using your brain, I guess). Sometimes it fits language design ("religious dogma" in the eyes of some), sometimes it simply didn't get implemented. Loops in Haskell are pretty common, tho. Perhaps you meant concept like for loop and this doesn't really fit.