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

Pages: 1-

Underscores

Name: Anonymous 2010-12-21 2:49

Why do C programmers put underscores everywhere _like ___this?

Name: Anonymous 2010-12-21 3:07

>>1
Because C programmers are braindamaged. Better use Common Lisp. It has a package system, just like in your Ubuntu.

Name: Anonymous 2010-12-21 3:18

>>2
I honestly can't tell if you're trolling or not.
10/10

Name: Anonymous 2010-12-21 3:26

Because of global variables/types.
It's generally done in order to prevent mix ups and variable/type name clashes.

Name: Anonymous 2010-12-21 3:29

>>2
It's also a toy just like your Ubuntu.

Name: Anonymous 2010-12-21 3:29

Are you COMMON?
Are you LISP?
Are you COMMON LISP?

If you answered t to all of the above questions, then COMMON-LISP (COMMON-LISP) might be exactly what you've been looking for!

Name: Anonymous 2010-12-21 11:26

Because they incorrectly think it's proper to put leading underscores on "private" stuff. Among other things, C99 7.1.3p1 says:

All identifiers that begin with an underscore and either an uppercase letter or another underscore are always reserved for any use. All identifiers that begin with an underscore are always reserved for use as identifiers with file scope in both the ordinary and tag name spaces.

The idea is that these identifiers are reserved for your compiler to implement its magic. If you peek into your compiler's headers, you'll probably see many double leading underscores. You're allowed to use a leading underscore followed by a lowercase letter or digit in some places, but it's best to just avoid leading underscores entirely.

Name: Anonymous 2010-12-21 12:07

>>5
Listen here, ``faggot''.

Name: Anonymous 2010-12-21 12:10

>>6
I'm waiting on EXTREME-LISP.

Name: Anonymous 2010-12-21 12:53

Why do Python programmers put underscores everywhere like this __init__?

Name: Anonymous 2010-12-21 13:03

>>10
Because they like SM.

Name: Anonymous 2010-12-21 13:54

>>7
That's pretty much it. The only case where I'd use leading underscores is in macro names for header guards.

Name: Anonymous 2011-02-04 16:14


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