`finally` is redundant?
Jonathan M Davis via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Nov 21 18:15:54 PST 2015
On Sunday, November 22, 2015 02:00:46 Chris Wright via Digitalmars-d-learn wrote:
> On Sat, 21 Nov 2015 16:10:45 -0800, Jonathan M Davis via
> Digitalmars-d-learn wrote:
>
> > Getting rid of finally would mean
> > reimplementing scope(exit) differently
>
> Well, we could keep try/finally as a concept inside the compiler but
> change the parser so it rejects finally blocks.
I expect that that would complicate things a bit, but regardless, why would
we do that? There's nothing wrong with finally. scope(exit) makes it less
useful, but that doesn't mean that it's useless or that we should get rid of
it.
- Jonathan M Davis
More information about the Digitalmars-d-learn
mailing list