News for hackers. Stuff that matters.
Re:Teach yourself Computer Science functionally by flaminHotSpeedo on Wednesday June 14, 2023 @12:32AM (#36321486)
The fact that you cannot interact with the real world without wrapping side effects is sufficient justification that OOP is easier to teach, IMO.

I'm a strong proponent of FP and agree (though I recognize I may be biased) that it's easy to learn with the right teacher, but that's a big caveat that isn't universalizable IMO

Re:Teach yourself Computer Science functionally by still_grokking on Wednesday June 14, 2023 @03:16AM (#36322552)
> The fact that you cannot interact with the real world without wrapping side effects

That has nothing to do with FP.

That's mostly a Haskell (and the-like) thing.

"Hello world" looks in for example in OCaml like this: `print_string "Hello world!\n"`. You can interact with the outside world just fine without any "side-effect wrapping".