Go Programming talk [OT]

Adam Ruppe destructionator at gmail.com
Tue Jun 8 16:14:22 PDT 2010


On 6/8/10, Leandro Lucarella <llucax at 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?


More information about the Digitalmars-d mailing list