I'm probably being stupid here but why not just:

i==1 ? do_stuff()

It seems natural to me given the syntax A ? B : C

Cheers,
Ethan

Reply via email to