Go has specific goals like not hiding control flow. This would go against those goals, at least the ways people have thought to do it so far.
Isn't defer hidden control flow? The defer handling can happen at any point in the function, depending on when errors happen. Exactly like a finally block.
I don't see how Try (the ? operator) is hidden control flow. It's terse, but it's not hidden.
Isn't defer hidden control flow? The defer handling can happen at any point in the function, depending on when errors happen. Exactly like a finally block.