News for hackers. Stuff that matters.
Re:We need to talk about parentheses by zelphirkalt on Monday February 12, 2024 @05:06PM (#39351194)
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.
Re:We need to talk about parentheses by lex-lightning on Monday February 12, 2024 @05:51PM (#39351654)
Hey I’m down to party with some monads, but I leave that as an exercise to the reader.

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.

Re:We need to talk about parentheses by zelphirkalt on Monday February 12, 2024 @08:16PM (#39353077)
I will definitely keep an eye open now, to see whether I hit such a situation in the future.