[prev in list] [next in list] [prev in thread] [next in thread]
List: haiku-commits
Subject: [haiku-commits] Re: haiku: hrev50788 - src/servers/app/decorator
From: Ingo Weinhold <ingo_weinhold () gmx ! de>
Date: 2016-12-27 20:50:07
Message-ID: 5862D3FF.2020505 () gmx ! de
[Download RAW message or body]
On 12/26/2016 06:47 PM, John Scipione wrote:
> On Sun, Dec 25, 2016 at 3:39 PM, Axel Dörfler <axeld@pinc-software.de> wrote:
>> Am 25/12/2016 um 04:10 schrieb jscipione@gmail.com:
>>>
>>> Replace integer constant 0 with floating point constant 0.0f
>>
>> I agree with Ingo on this one "0" is much more readable than "0.0f" -- what
>> added value does it have?
>
> It avoids an implicit integer to floating point conversion. But I
> don't really care about that, I just wanted the style to be
> consistent. Seems like you guys (Ingo & Axel) prefer 0 to 0.0f, which
> means you aren't too worried about the implicit conversion.
I don't think there is any ambiguity in these cases, so I can't think of
any negative effects. The conversion is already done at compile time, so
the generated code will be the same.
CU, Ingo
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic