The last post from my colleague Marc Mutz about deprecating
Q_FOREACH caused quite an uproar amongst the Qt developers who follow this blog.
I personally feel that this was caused fundamentally by a perceived threat: there is a cost associated to porting away a codebase from a well-known construct (
Q_FOREACH) to a new and yet-undiscovered construct (C++11’s range based
for), especially when the advantages are not that clear. (With stronger advantages, maybe people would be more keen …