[Development] Future of java-style iterators?
Giuseppe D'Angelo
giuseppe.dangelo at kdab.com
Sun Dec 3 22:34:11 CET 2023
Hello,
On 03/12/2023 21:56, Christian Ehrlicher wrote:
> Some days ago we got an error report in the forum about QHashIterator,
> turned out to be a missing documentation for a complete class which
> remained unnoticed since Qt 6.0
> (https://bugreports.qt.io/browse/QTBUG-119461).
> This leads to the question if we should deprecate all java-style
> iterators since they seem to be a) not widely used and b) it looks like
> we don't support them in a way we should.
> What do you think?
While any "serious" code should build under QT_NO_JAVA_STYLE_ITERATORS¹,
how much maintenance do they cost us? There's been virtually 0 changes
on them since Qt 6.0.
¹ We should of course open the chapter of having something that defines
all these QOL macros. No one should be using the Java iterators. Here's
a draft:
https://codereview.qt-project.org/c/qt/qtbase/+/522833
My 2 c,
--
Giuseppe D'Angelo | giuseppe.dangelo at kdab.com | Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
KDAB - The Qt, C++ and OpenGL Experts
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4244 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.qt-project.org/pipermail/development/attachments/20231203/3684ad0d/attachment.bin>
More information about the Development
mailing list