`finally` is redundant?

Meta via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Nov 21 18:32:54 PST 2015


On Saturday, 21 November 2015 at 05:45:25 UTC, Shriramana Sharma 
wrote:
> The page http://dlang.org/exception-safe.html says:
>
> "It's try-finally that becomes redundant."
>
> IIUC this is because we have scope(exit).
>
> Does this mean that `finally` should eventually be removed from 
> the language?

The most important reason not to do this is that it makes it 
easier to port Java, C#, Python, Ruby, etc. to D.


More information about the Digitalmars-d-learn mailing list