A #do[] macro which just returns in the case of failure is basically equivalent to this in practice, I think.
Niko On Nov 18, 2011, at 2:18 PM, Erick Tryzelaar wrote: > Has anyone considered haskell's monadic errors? As far as the end user > is concerned, it's pretty much equivalent to exceptions, but minus the > stack-jumping-ness of true exceptions. Since at it's heart it's just > returning values of either<T,U>, I would imagine it wouldn't break > typestate: > > http://www.randomhacks.net/articles/2007/03/10/haskell-8-ways-to-report-errors > _______________________________________________ > Rust-dev mailing list > Rust-dev@mozilla.org > https://mail.mozilla.org/listinfo/rust-dev > _______________________________________________ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev