[haiku-commits] Re: haiku: hrev47758 - src/add-ons/kernel/drivers/graphics/radeon_hd

  • From: Ingo Weinhold <ingo_weinhold@xxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 29 Aug 2014 21:03:46 +0200

On 29.08.2014 16:37, Axel Dörfler wrote:
Am 29/08/2014 16:32, schrieb Stephan Aßmus:
I don't agree. The function returns either this or that, based on the
condition, and the formatting makes this pretty obvious. With a your
proposed formatting, one would have to mentally translate it first. Not
very difficult, but I don't believe applying the style guide in corner
cases like this when it makes the code a bit more obscure.

Our parsers might just work a bit different, or maybe I just annoyed by
the extra syntax I have to parse :-)

FWIW I'd use the ternary operator in this case anyway. Even less to parse. :-)

CU, Ingo


Other related posts: