3 ms·
This already does work in TS, and there are some patterns besides Effect that simplify working with the return values. Which brings me to my other big gripe wi
by xixixao 1y ago
This already does work in TS, and there are some patterns besides Effect that simplify working with the return values.
Which brings me to my other big gripe with Rust (and Go): the need to declare structs makes it really unwieldy to return many values (resorting to tuples, which make code more error prone and again harder to read).
- _benton 1y agoYep. I wish Rust supported proper union types. Typescript gets it right, I just don't want to be writing Javascript...