How do you realize a try-catch-finally idiom in smalltalk? I see there is on:do: and ensure:, but there isn’t on:do:ensure:. I must be missing something.
How do you realize a try-catch-finally idiom in smalltalk? I see there is on:do:
Share
You could wrap the #on:do block in another block that has the #ensure: attached to it.