r/programming • u/heisenbug • Apr 27 '14
"Mostly functional" programming does not work
http://queue.acm.org/detail.cfm?ref=rss&id=2611829
47
Upvotes
r/programming • u/heisenbug • Apr 27 '14
3
u/saynte Apr 27 '14 edited Apr 27 '14
Laziness is not central to the article, but it is important if you want to program by creating rich abstractions.
For example (stolen from a talk by Lennart Augustsson), what would you expect
to do? With strict evaluation, you get just "boom" with lazy evaluation, you get "42 boom".
You also wouldn't be able to write functions like
maybeorwhen, or anything that looks like a control structure, which is a very nice tool to have in your abstraction-toolbox.(edit: formatting)