4 ms·
F# CE is so cool
by Serow225 5y ago
F# CE is so cool
- peheje 5y agoIt is. One thing I don't get about the async story in Computation Expressions is the sudden need for you to think about return/return! Couldn't CE continue to use "return by last statement" and then do the CE-invoking version with exclamation mark in the end? let private readUrls () = async { (IO.File.ReadAllLinesAsync "urls.txt" |> Async.AwaitTask)! } Would probably break something I haven't thought about. Also the whole task vs async confusion is a bit difficult to wrap your head around. I understand .net6 introduced task {} CE, but you still need to have two stories in your head and convert back and forth and use async {}