What is the cleanest way of doing:
if value == ‘blah’
That is. If a is needed and doing a throws an exception, do b instead.
Otherwise, if a is not needed do b.
Or is that the cleanest way?
By cleanest, I mean l don’t like calling b_action twice in the method if
don’t have to, but it’s a trade off on readability… and I don’t like
way the code looks now
Any other simpler way to do this pattern?