[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: try/finally
From: |
Andrew Janke |
Subject: |
Re: try/finally |
Date: |
Wed, 20 Mar 2019 22:42:40 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.5.3 |
On 3/20/19 10:32 PM, John W. Eaton wrote:
On 3/20/19 5:39 PM, Andrew Janke wrote:
Matlab has neither try/catch nor unwind_protect, so compatibility is
not an immediate concern. And I think they're more likely to add a
finally than an unwind_protect.
Matlab does have try/catch:
https://www.mathworks.com/help/matlab/ref/try.html
Sorry, I meant "Matlab doesn't have try/finally".
It would still be possible to add a finally block, but I'm not too
interested in language extensions these days since they tend to create
future compatibility issues.
Okay.
Cheers,
Andrew