0

If you open up XCode (or probably another IDE) and type in __ you can see a lot of variables which starts with __. (in the auto complete box).

Why did the developers add the _s in there?

Praetorian
  • 106,671
  • 19
  • 240
  • 328
BiiX
  • 137
  • 1
  • 11
  • 1
    These names are reserved for use by the C++ implementation. – T.C. Mar 20 '16 at 19:08
  • I don't know if they applied only C++ (as standalone language), but many frameworks use macros with prefix _, like "_WINDOWS" – Joel Mar 20 '16 at 19:09
  • @Joel - `_WINDOWS` is also in the set of reserved names. All names that begin with an underscore followed by a capital letter are reserved. – Pete Becker Mar 20 '16 at 19:53

0 Answers0