News for hackers. Stuff that matters.
Re:C will never stop you from making mistakes by CodeArtisan on Monday August 10, 2020 @02:05PM (#24112169)
The choice between ``int p;'' and ``int p;'' is not about right and wrong, but about style and emphasis. C emphasized expressions; declarations were often considered little more than a necessary evil. C++, on the other hand, has a heavy emphasis on types.

A ``typical C programmer'' writes ``int p;'' and explains it ``p is what is the int'' emphasizing syntax, and may point to the C (and C++) declaration grammar to argue for the correctness of the style. Indeed, the binds to the name p in the grammar.

A ``typical C++ programmer'' writes ``int p;'' and explains it ``p is a pointer to an int'' emphasizing type. Indeed the type of p is int. I clearly prefer that emphasis and see it as important for using the more advanced parts of C++ well.

https://www.stroustrup.com/bs_faq2.html#whitespace

Re:C will never stop you from making mistakes by saagarjha on Monday August 10, 2020 @04:43PM (#24113755)
Hacker News has made your comment fairly difficult to understand ;)