cc. - interesting thread here - know of any good ways to get to ancient Rust documentation?
Conversation
i see... sorta wish that error-by-return-code had been the one removed instead of conditions *_*
1
I'm not so sure - I guess I'm more of a fan of monadic error handling. Rust's lack of extensible variants can make managing all your error types abit annoying, I'll admit. The failure crate makes this nicer, but then you're effectively shelling out to dynamically typed errors.
1
2
Yeah.... monadic error handling sounds like the way we really "want" to be doing things. Now we just need to figure out a way to present monads so that people can understand what they are without reading 9 blog posts...
1
We sometimes refer to it as "monadic", but it looks more like statically typed and manually propagated exceptions - see doc.rust-lang.org/nightly/book/s (also, it's not in stable yet, but on nightly you can use a `Result` type for `main` too, which will simplify many of these examples)
2
3
Oh, you mean, this is a thing in rust and not "I like monads" ad a generic statement?
What is the practical difference better this new monadic style, and conditions?
2
Oh.
That's disappointing.
1
Found something - it was already deprecated but still around: doc.rust-lang.org/0.9/std/condit (the fact that 0.10 and older don't have a .0 patch version in the doc URL threw me off for a while)
1
1


