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

int* p vs. int *p

Name: Anonymous 2009-10-29 0:18

What do you think about the difference between the following declarations? Which do you prefer?

int* p;
int *p;

It's often said the first is C++ style and the second is C style. I prefer C but conceptually the first declaration makes a lot more sense to me. You're defining a variable p of type int*. p is an int*. You dereference it, *p, when you want the int. Makes sense. The second example to me seems like gobbledygook, but it's the way the C authors thought of it, because of this bullshit:

int *p, *q;

So what the fuck is the deal? Can someone who uses "int *p" syntax explain to me what goes through your head when you write that garbage?

Name: Anonymous 2009-10-29 19:55

I honestly dont get why you have to use secret acronyms.
YHBT is a very old and well known acronym and could hardly be classified as secret.
making up acronyms makes it exclusive because i dont know what you mean
Firstly, making up acronyms is fun and has led to many interesting diversions of topic on /prog/
Secondly, it is traditional to lurk and become acquainted with a board's culture (memes,acronyms,use of text for artistic purposes, taboo themes) before posting and the current trend of just ignoring all the board culture and expecting everyboard to behave the same is the reason that the majority of 4chans boards have went down the shitter.
this is the reason i left reddit, and anonymous boards are supposed to avoid that
While I'm glad you've came to your senses about reddit and similar sites (I'm guessing from the way you post you've read shii's essay?), it is, unfortunately, folly to assume that these ideals still hold (see /b/ for details)

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