Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C++ syntactic sugars

Name: Anonymous 2014-05-30 13:31

Namespaces are syntactic sugar, instead of doing:

namespace penis
{
unsigned char a=0;
}

you could just write:

unsigned char penis_a=0;


Distinction between public and private is stupid for the same reason described above.
Also, instead of using for and while you could just use if and goto. And I have several more examples...

Why do people keep designing bloated programming languages like C++?

Name: Anonymous 2016-09-30 23:10

>>1
Distinction between public and private is stupid for the same reason described above.
private (i.e file local/static variables and functions) are useful because they can easily be eliminated as dead code by linkers if they happened to not be used (like including a header file with a bunch of common static helper functions).

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List