Hi!
At the moment, I can suggest this syntax:
try {
// do something
} catch (SomeIgnorableException) finally {
// do something
}
I also generally like the above idea with the keyword ignore.
чт, 31 июл. 2025 г. в 20:24, Casper Langemeijer <[email protected]>:
>
>
> On Thu, Jul 31, 2025, at 06:53, Mihail Liahimov wrote:
>
> Proposal
>
> Allow the following syntax where the curly braces can be omitted when no
> exception variable is specified and no handling is needed:
>
> try {
> // code that may throw
> } catch (SomeError);
>
>
> Can you write out how this would interoperate with the finally keyword?
>