You might do it because you want to factor the handling of the different result cases out to another function.
Reply on news.ycombinator.com