as functional as js and react have become over the years, I really wish it was easy to move to Result-based apis for error management instead of the glorified call/ccs that try/catch blocks provide, but it'd require such a massive rewrite of everything i guess monadic handling of stuff beyond Promises and kinda useEffect is gonna remain a Rust/Scala/OCaml/Haskell/F# thing, plus pattern matching in JavaScript has been on the ECMAScript list for ages anyway
View all comments
Show parent comment
1
u/catladywitch Jul 09 '26
as functional as js and react have become over the years, I really wish it was easy to move to Result-based apis for error management instead of the glorified call/ccs that try/catch blocks provide, but it'd require such a massive rewrite of everything i guess monadic handling of stuff beyond Promises and kinda useEffect is gonna remain a Rust/Scala/OCaml/Haskell/F# thing, plus pattern matching in JavaScript has been on the ECMAScript list for ages anyway