News for hackers. Stuff that matters.
Re:Pain Points of OCaml by sasmithjr on Tuesday November 04, 2025 @09:29AM (#45811427)
You can write a helper method (or use FsToolkit.ErrorHandling[0]) to simplify the F# example to:

    let Foo () = getData() |> Task.map _.value
And it'll be easier to work with the .NET ecosystem if you use the task computation expression[1] over the async one.

[0]: https://github.com/demystifyfp/FsToolkit.ErrorHandling

[1]: https://learn.microsoft.com/en-us/dotnet/fsharp/language-ref...

Re:Pain Points of OCaml by shortrounddev2 on Thursday November 06, 2025 @11:41AM (#45837149)
Isn't that a synchronous call?