On Friday 18 of March 2016 09:13:13 Knoll Lars wrote: > I’m all for an automated solution for code formatting, so we can remove > discussions/comments about wrongly placed braces or spaces from code review > and can rather focus more on the content. But there will be still a need > for some coding guidelines in other places (like auto usage, foreach and > many other things).
That was my point. It starts to be really arbitrary. If we can not express a rule in an algorithmic way then it is not a rule it is just a hint, which should not end up as a -1 in code review. Auto usage is exactly one of these cases, some people thinks it is fine to use it almost everywhere some thinks it is better to avoid it. I really want to have an algorithm, I don't want to have slightly different coding style depending on the reviewer. Same with foreach, it seems that we prefer range loops now, therefore foreach should not be used which is easy to express as an algorithm ;-) Cheers, Jędrek _______________________________________________ Development mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/development
