Function level try recourse directives.
Mark Raynsford
org.openjdk at io7m.com
Tue Dec 27 14:07:26 UTC 2022
On 2022-12-27T14:49:13 +0100
Red IO <redio.development at gmail.com> wrote:
>
> Sometimes we need to initialize something between the resources and we get
> multiple levels of nesting.
> And I was wondering if we could not just lose the block and auto close at
> the end of a method like this :
I work with Vulkan a lot, and that involves a metric ton of closeable
resources that also have to be closed in stack order. I have a
library-level solution for this:
https://www.io7m.com/software/jmulticlose/
--
Mark Raynsford | https://www.io7m.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 228 bytes
Desc: OpenPGP digital signature
URL: <https://mail.openjdk.org/pipermail/amber-dev/attachments/20221227/1afdc361/attachment.sig>
More information about the amber-dev
mailing list