On 6/8/10, Leandro Lucarella <llu...@gmail.com> wrote: > That's what I like the most about exceptions. I think try/catch is > really ugly though. There has to be something better.
Isn't there actually a function buried somewhere in Phobos that translates exceptions into return values? Yes, there is: http://dpldocs.info/std.contracts.collectException Still not the most beautiful thing ever, but perhaps something along that idea line would be better for you?