D15694: Make implicit fallthroughs a compiler error, remove unneeded breaks

Aaron Puchert noreply at phabricator.kde.org
Fri Sep 28 00:49:56 BST 2018

aaronpuchert added a comment.

  Attributes are not keywords — they're a (C++-specific) generic syntax that was introduced with C++11. There are numerous compiler-specific attributes, usually prefixed with the compiler name, and some standardized attributes. See cppreference.com <https://en.cppreference.com/w/cpp/language/attributes> for a list of those.
  Again, the idea is not starting from scratch, but introducing small changes that reduce the number of errors programmers make while requiring only minimal changes to the code. If you have to go over your code every few years and rewrite everything from scratch, not enough people will use the new standards. Introducing new syntax is usually the last resort, especially if an existing language mechanism can do the job as well.

  R32 KDevelop


To: aaronpuchert, #kdevelop, mssola, brauch
Cc: rjvbb, brauch, mssola, kossebau, kdevelop-devel, glebaccon, antismap, iodelay, vbspam, geetamc, Pilzschaf, akshaydeo, surgenight, arrowd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20180927/0903b11b/attachment-0001.html>

More information about the KDevelop-devel mailing list