News for hackers. Stuff that matters.
Re:What is the most intrusive wart on your favourite program... by zain on Monday December 08, 2008 @01:36AM (#389583)
It isn't always that straightforward. For example:

  if (a)
    return (some && complicated || boolean && calculation);
  else
    return (some || other && boolean || calculation);
edit: I suppose you can get rid of the "else", but you shouldn't have to sacrifice readability for a compiler shortcoming. I'm with mdasen; the compiler should figure it out.
Re:What is the most intrusive wart on your favourite program... by ralph on Monday December 08, 2008 @08:55AM (#389828)
Readability is improved by not having the else clause. It makes it clear that the return in the then-block is there and the code won't continue after the end-if.