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

Show parent comments

0

u/[deleted] Apr 28 '14

[removed] — view removed comment

2

u/Tekmo Apr 28 '14

Right, but if you wrote that as two separate passes the compiler won't automatically fuse them into a single pass for you. This means that you have to define the entire algorithm in one shot if you care about efficiency, and you can't build it up from separate composable pieces.

0

u/[deleted] Apr 28 '14

[removed] — view removed comment

2

u/Tekmo Apr 28 '14

Interesting. So how does it handle the side effect issue?

3

u/[deleted] Apr 28 '14

[removed] — view removed comment

4

u/Tekmo Apr 28 '14

Thanks! That was really informative! :)