2026-10-25 16:17 UTC
Linq
AKA - We have Monads at home…
Rust is really missing something like do syntax. It’s half-way there with the semicolon and question marks, but it’s missing an idiom for .map_or_else and to generalize the thing to work with a trait.
Replies (1)
-
@ThirdConsul@lemmy.zip 2026-10-25 22:15
AKA - We have Monads at home… Thats not the linq purpose. Though it is technically a monad, its purpose is not hiding side effects or managing an async flow, but query, filter, map data from an enumerable. If you use Linq as a replacement for Option, Either or Maybe you’re doing something wrong.