[Development] QtCS2019 Notes: QtCore
apoenitz at t-online.de
Sun Nov 24 13:42:43 CET 2019
On Sun, Nov 24, 2019 at 12:31:32PM +0100, Konrad Rosenbaum wrote:
> I'd rather have the compiler tell me that I need to change my code than hide
> it from me. Warnings are there for a good reason.
> The only way to do this with this proposal is to make count() deprecated from
> the start! So, why bother with duplicated API in the first place?
Because a lot consumers (and this includes most of Qt code itself) settled
on an int based interface for things they are interested to count or index.
So it's either getting _also_ an int interface directly, or direct
narrowing on the user side.
More information about the Development