[Development] How to port from Q_FOREACH to range-based for
Philippe
philwave at gmail.com
Wed Jun 12 08:23:16 CEST 2019
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
Philippe
More information about the Development
mailing list