|
|
|
|
|
by zelphirkalt
854 days ago
|
|
I see now how the problem is. Thanks.
I have a suspicion, that this depends on side effects and that without assignments and without side effects things might look different. Somehow I don't seem to come across these scenarios, when I write FP programs. |
|
One note: each variable only gets assigned to once, so FP won’t magic that away.
The side effects might have a different way of management in FP. But the IO will happen in the same order in reality anyway.
So I don’t think there’s a way out, but I honestly would be interested to see it.