News for hackers. Stuff that matters.
Re:Why is learning functional programming so damned hard? (2... by yawaramin on Sunday August 15, 2021 @09:06PM (#28193982)
> A good example would be a program that runs fine suddenly now needs a "timeout" on an operation. FP implementations now need to thread the notion of time from somewhere near the top of the implementation the whole way down the chain to the function that needs "time".

I mean, 'FP' is so broad a term that a lot of languages fall under that, almost all of which can introduce the concept of a timeout quite easily. E.g. OCaml's Lwt, or Scala's ZIO are two that quickly come to mind.

There are no comments on this comment yet.