|
|
|
|
|
by crimsonalucard
2351 days ago
|
|
Sure but this is what they say and what they believe. Literally. Armies of programmers believe this and your statement won't convince them. It always goes into philosophical mumbo jumbo. I'm looking for quantitative and logical proofs that say definitively why functional is better. You do see how your statement will just trigger a vague retort from an OOP guy which will trigger a bunch of other vague retorts and counter examples from you. The end game is it goes nowhere. If I want to be pedantic, the official term is normal order. You are wrong on this. See SICP chapter 1. |
|
SICP isn't going to help you, we're talking about Haskell's 'call by need' evaluation. It's not the same as 'normal order', feel free to look up the definition where ever you like.
I don't think a 'logical proof' is even possible, so I'm not really sure what you're asking for. We could definitely use more research on paradigms and their effects. There are a few studies on types providing benefits, but nothing that I'm aware of about FP. I think the problems stems from the fact that "functional programming" is itself a pretty loose definition.
edit: something you can read about evaluation order,
https://en.wikipedia.org/wiki/Evaluation_strategy#Non-strict...