[swift-evolution] SE-0181 : should c++ be written "cxx" or "cpp" ?

Greg Parker gparker at apple.com
Wed Jul 12 16:12:40 CDT 2017


> On Jul 12, 2017, at 10:21 AM, Trevör ANNE DENISE via swift-evolution <swift-evolution at swift.org> wrote:
> 
> After quickly reading "SE-0181: Package Manager C/C++ Language Standard Support" I noticed that as Swift doesn't support "+" sign in identifiers, the format "cxx" was used (as in "CXXLanguageStandard"), why isn't "cpp" used instead of "cxx" ?

Several Swift developers came from clang, and clang uses "CXX" almost everywhere.

One reason for clang to use "CXX" is that "CPP" is historically also used for the C preprocessor. Using "CPP" for C++ would risk ambiguity.


-- 
Greg Parker     gparker at apple.com <mailto:gparker at apple.com>     Runtime Wrangler


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20170712/1f0ed5df/attachment.html>


More information about the swift-evolution mailing list