On Friday, 3 June 2022 at 23:40:50 UTC, Steven Schveighoffer
wrote:
During the last beerconf, I wrote a short blog post about how
`Error` and `Exception` are different, and why you should never
continue after catching `Error`s.
I know the thematics but I still wonder why we only have
`scope(failure)` then? Anywhere where you will use this shiny
thing with a return statement will also catch any error that have
occurred. `scope(exit)` doesn't allow return statements, thus the
only properly clean design would be an additional
`scope(exception)` guard.
- Re:... Sebastiaan Koppe via Digitalmars-d-learn
- Re:... Ola Fosheim Grøstad via Digitalmars-d-learn
- Re:... Ola Fosheim Grøstad via Digitalmars-d-learn
- Re:... Steven Schveighoffer via Digitalmars-d-learn
- Re:... Ola Fosheim Grøstad via Digitalmars-d-learn
- Re:... Ola Fosheim Grøstad via Digitalmars-d-learn
- Re:... Steven Schveighoffer via Digitalmars-d-learn
- Re:... Ola Fosheim Grøstad via Digitalmars-d-learn
- Re:... Ola Fosheim Grøstad via Digitalmars-d-learn
- Re:... kdevel via Digitalmars-d-learn
- Re: Comparing Exceptions and ... frame via Digitalmars-d-learn
-