You don't have to use inline functions all the time, you can do it like this:
function foo () {.... }
function bar () {....foo(); }
function barfoo () {....bar(); }
doSomething(barfoo);