3 ms·
>Unless of course you don't care about the variables created inside. In majority of cases I really don't care about the variables created inside. If I can't ha
by gambler 8y ago
>Unless of course you don't care about the variables created inside.
In majority of cases I really don't care about the variables created inside. If I can't handle an error just by looking at the exception and method arguments I usually refactor. In my view, error handling should not be intertwined with the "happy path". It makes reasoning about non-trivial code much harder.
For other cases the old syntax will still be available.
And yes, the value of "finally" in such a shorthand is dubious. I just added it to make it clear how the rewrite rule would work.