devxlogo

Avoid using double underscore in your identifiers

Avoid using double underscore in your identifiers

Identifiers starting with __ (double underscore) are reserved for C/C++ implementations and standard libraries. Furthermore, C++ programs are transformed by the compiler (inline substitution, addition of this as an argument to a non-static member function and creation of temporary objects – to name a few). As a result, new identifiers are inserted into the source file, which weren’t declared by the programmer. In order to avoid name conflicts, the compiler-generated identifiers are usually decorated with a double underscore, so __ should be avoided by users.

See also  Professionalism Starts in Your Inbox: Keys to Presenting Your Best Self in Email
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist