DEV Community

Discussion on: It's a pointer to a type, not a variable with an asterisk in its name

Collapse
 
mellen profile image
Matt Ellen

Thank you for engaging in good faith.

I completely disagree with everything you said.

Apart from the bit about linters. Linters are great.

Collapse
 
joelbonetr profile image
JoelBonetR 🥇 • Edited

😂😂 you are truly angry around this topic I see.

I updated the comment above with a bit more of information around why I think that int * x is the least confusing, please check it.

I don't think I'll be able to stress it further, though 😅

Collapse
 
joelbonetr profile image
JoelBonetR 🥇

PD: Just in case it's not clear in the text above I agree with you in that int* x is the worse way by far.

Between the other two:

int *x;
int * x;
Enter fullscreen mode Exit fullscreen mode

it's just subjective opinion around readability and I won't care much if it's one or the other.