[Development] Future of java-style iterators?
Andreas Aardal Hanssen
andreas at hanssen.name
Tue Dec 5 22:26:45 CET 2023
How about QDir::iterator, QDir::cbegin, basically make QDir a container? Or make a new class that serves the same purpose… /me likes the QDir idea.. :-)
Andreas
Tir 5 des 2023 kl. 22:15 skrev Mathias Hasselmann via Development:
> Hi,
>
> would QDirIterator[1] be part of this deprecation? Its API clearly seems
> be inspired by the Java-style iterators.
>
> While I do not care much about the other Java-style iterators, I really
> like this iterator and use it a lot.
> What would be this iterator's modern replacement in Qt?
>
> Ciao
> Mathias
>
> [1] https://doc.qt.io/qt-6/qdiriterator.html
>
> Am 03.12.2023 um 21:56 schrieb Christian Ehrlicher:
> > Hi,
> >
> > 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?
> >
> >
> > Cheers,
> > Christian
> >
> >
> --
> Development mailing list
> Development at qt-project.org
> https://lists.qt-project.org/listinfo/development
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20231205/daf20670/attachment.htm>
More information about the Development
mailing list