This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: (C++) Patch to elaborated-type-specifier handling


    There's no general acceptance on which of these styles is preferable.
    The GNU Coding Standards don't say (so far as I know) and much of the
    C++ front-end (at least) uses the `!x' style rather than the `! x' style.

Most of the back-end uses the latter style and my argument is readability:
it's easier to catch a use of a variable at a glance if it has whitespace
around it.  "!again" looks sufficiently different than "again" that manual
searches for uses can miss it.  That's much easier to spot it in  "! again".
At least in my opinion.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]