Worst ideas/features in programming languages?
Ola Fosheim Grøstad
ola.fosheim.grostad at gmail.com
Mon Nov 8 14:23:15 UTC 2021
On Monday, 8 November 2021 at 14:08:32 UTC, Atila Neves wrote:
> I thought Rust error handling wasn't easy by default until they
> added the ? operator, at which point it became like exceptions
> but better.
Looks like syntactical sugar to me, but I am no Rust expert. It
means you now loose context, and how do you log?
> To me that was always the issue with error handling without
> exceptions - how to easily just propagate it up (nearly always
> what one wants to do). I think they nailed it.
For simple situations maybe, but it looks like a hack, as far as
I can tell from the docs.
More information about the Digitalmars-d
mailing list