In addition to the good reasons that robson and AshleysBrain have already given, one of the reasons that standard C ++ libraries have such short names and compact code is that almost every C ++ program (a compilation unit, really ) includes a large number of the standard library headers, and they are thus recompiled (remember that they are largely template-based, while the headers of the standard C library contain only a few function declarations). The standard library, written in the style of the "standard standard", requires more time to compile and, thus, leads to the perception that a particular compiler is "slow". By minimizing spaces and using short identifier names, lexer and parser have less work, and the whole compilation process completes a little faster.
Another reason worth mentioning is that many standard library implementations (e.g. Dinkumware, Rogue Wave (old), etc.) can be used with several different compilers with very different compliance standards and quirks. Often there are many macros designed to satisfy each supported platform.
Drew Hall Nov 15 '10 at 2:27 2010-11-15 02:27
source share