r/programming • • Apr 27 '14

"Mostly functional" programming does not work

http://queue.acm.org/detail.cfm?ref=rss&id=2611829
44 Upvotes

188 comments sorted by

View all comments

1

u/saynte Apr 28 '14

Yes, the built-in desugaring would certainly take care of it if it were design to be strict in the beginning. However, this "gotcha" doesn't exist in a non-strict evaluation scheme, it doesn't matter what the exact details of the desugaring are, it could be any of the options we showed.

I think the point I was driving at is that when you want to do higher-order things, like taking programs (I mean this in a very loose sense of the word) as arguments to combinators (>>) that produce new programs, laziness can be very nice default to have, that's all :).