Re: [Development] Future of java-style iterators?

2023-12-05 Thread Thiago Macieira
On Tuesday, 5 December 2023 14:02:36 PST Giuseppe D'Angelo via Development wrote: > QDirIterator, QRegularExpressionMatchIterator, (private) QStringIterator > and similar don't have replacements yet. > > Yes, one can wrap a Java iterator back into a range API (as I've done > for QREMI, so you

Re: [Development] Future of java-style iterators?

2023-12-05 Thread Giuseppe D'Angelo via Development
Hello, Il 05/12/23 22:15, Mathias Hasselmann via Development ha scritto: 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

Re: [Development] Future of java-style iterators?

2023-12-05 Thread Jaroslaw Kobus via Development
side QtCreator. Jarek From: Development on behalf of Andreas Aardal Hanssen Sent: Tuesday, December 5, 2023 10:26 PM To: Qt Development Subject: Re: [Development] Future of java-style iterators? How about QDir::iterator, QDir::cbegin, basically make

Re: [Development] Future of java-style iterators?

2023-12-05 Thread Andreas Aardal Hanssen
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

Re: [Development] Future of java-style iterators?

2023-12-05 Thread 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

Re: [Development] Future of java-style iterators?

2023-12-05 Thread Marc Mutz via Development
On 05.12.23 10:06, Giuseppe D'Angelo via Development wrote: > Il 05/12/23 03:52, Kevin Kofler via Development ha scritto: >> Marc Mutz via Development wrote: >>> Until then, either you want to be notified of sub-optimal APIs asap, >> What is "suboptimal" about Java-style iterators, other than that

Re: [Development] Future of java-style iterators?

2023-12-05 Thread Giuseppe D'Angelo via Development
Il 05/12/23 03:52, Kevin Kofler via Development ha scritto: Marc Mutz via Development wrote: Until then, either you want to be notified of sub-optimal APIs asap, What is "suboptimal" about Java-style iterators, other than that they do not work the same way as the STL ones? I find the

Re: [Development] Future of java-style iterators?

2023-12-04 Thread Kevin Kofler via Development
Marc Mutz via Development wrote: > Until then, either you want to be notified of sub-optimal APIs asap, What is "suboptimal" about Java-style iterators, other than that they do not work the same way as the STL ones? I find the Java-style iterators to be easier to use and less error-prone than

Re: [Development] Future of java-style iterators?

2023-12-04 Thread Jyrki Yli-Nokari
Fair enough, as long as they are not removed anytime soon > Marc Mutz via Development kirjoitti 4.12.2023 > kello 10.20: > > On 04.12.23 09:06, Jyrki Yli-Nokari wrote: >> >> While I do not use them, I feel that deprecating such core functionality of >> a framework without measurable gain

Re: [Development] Future of java-style iterators?

2023-12-04 Thread Marc Mutz via Development
On 04.12.23 09:06, Jyrki Yli-Nokari wrote: > > While I do not use them, I feel that deprecating such core functionality of a > framework without measurable gain would seriously harm anyone using them and, > most importantly, fundamentally harm the promise and dependability of Qt as a >

Re: [Development] Future of java-style iterators?

2023-12-04 Thread Jyrki Yli-Nokari
While I do not use them, I feel that deprecating such core functionality of a framework without measurable gain would seriously harm anyone using them and, most importantly, fundamentally harm the promise and dependability of Qt as a framework of choice. > Giuseppe D'Angelo via Development

Re: [Development] Future of java-style iterators?

2023-12-03 Thread Giuseppe D'Angelo via Development
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

[Development] Future of java-style iterators?

2023-12-03 Thread 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