[Development] How to port from Q_FOREACH to range-based for
Mutz, Marc
marc at kdab.com
Wed Jun 12 10:31:33 CEST 2019
On 2019-06-12 08:23, Philippe wrote:
> On Wed, 12 Jun 2019 07:54:29 +0200
> Nicolas Arnaud-Cormos via Development <development at qt-project.org>
> wrote:
>
>> Whenever Qt is adding a new feature there's a teachability issue that
>> needs to be handled. Any duplication with the C++ standard adds
>> cognitive load to students.
>> One could dismiss that by saying just use the Qt solution, but it
>> would
>> be hiding himself in a box: I'm working on customer codes (not mine),
>
> Except that in this case, we are speaking about a side-effect of
> Copy-on-write, and this technique is an essential one to know, even
> independently from Qt, one technique that any student should be aware
> of :)
> https://en.wikipedia.org/wiki/Copy-on-write
Have you run clazy on something like Qt 5.4, ie. before clazy was first
run on Qt? One would think that if any student should be aware of CoW,
so should any Qt dev. You're in for a surprise!
More information about the Development
mailing list