D15532: [Astyle] Add Objective C to list of languages with formatters

René J.V. Bertin noreply at phabricator.kde.org
Fri Sep 21 09:53:49 BST 2018


rjvbb added a comment.


  > We could activate `-Wunreachable-code` so the compiler tells you where `break` isn't needed.
  
  Evidently I was talking about a general principle, not about introducing a dependency on the compiler telling you what (not) to do. If I wanted that I'd be coding in Modula-2 ...
  
  > C inherits PlainText inherits Octetstream -> C is-a PlainText is-a
  >  Octetsteam. So e.g. any handlers (like viewers) of a given format can also
  >  handle files of a format that inherits from it.
  
  But those viewers cannot be expected to handle all specifics of a further evolved format, can they now? Despite all its differences C++ still has a lot in common with C, and formatting it as C is better than formatting as plain text, no?
  I know the s-m-i entries talk about "subclass-of" (which to me in fact suggests the opposite, i.e. subset of) but Qt translates that to inheritance which I think is fine. And describes the situation exactly; C++ and ObjC aren't called D++ and ObjD for a reason after all ;)

REPOSITORY
  R32 KDevelop

REVISION DETAIL
  https://phabricator.kde.org/D15532

To: rjvbb, #kdevelop, kossebau, kfunk
Cc: aaronpuchert, kfunk, pino, 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/20180921/65389244/attachment.html>


More information about the KDevelop-devel mailing list