Click here to Skip to main content
15,890,438 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
Kirk 1038982129-May-18 1:59
Kirk 1038982129-May-18 1:59 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
nullusDefectus29-May-18 2:11
nullusDefectus29-May-18 2:11 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
Hans Salvisberg29-May-18 3:20
Hans Salvisberg29-May-18 3:20 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
ZimFromIRK29-May-18 3:34
ZimFromIRK29-May-18 3:34 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
SeattleC++29-May-18 4:32
SeattleC++29-May-18 4:32 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
Jesse Connell29-May-18 6:03
Jesse Connell29-May-18 6:03 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
jfbode102930-May-18 10:46
jfbode102930-May-18 10:46 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
Jesse Connell30-May-18 17:31
Jesse Connell30-May-18 17:31 
I've noticed you italicized a lot of things relating to "understanding" how the language works. Many who do understand it feel the declaration syntax sucks inherited from C is a PITA.

If only programmers were taught declaration syntax, they'd come across this and the intention would be clear:
int (*f(int x))[3]
{
    // ...
}

Also, I think my argument is somewhat supported by:
using T = char*;
T a, b;
Yes, I understand the grammar, and yes, I understand how this is different vis-a-vis grammar, but I'm not arguing about the grammar, I'm arguing about what _style_ is more "C++-esque". Here, T is the type specifier with no pointer declarator. The _type_ is actually now `char*` So when declaring these two names, they have the same types. That's the more natural use case one would expect from a programming language. Clearly, this is a matter of taste, but again, I'll point out that Bjarne Stroustrup is clearly on my side of this disagreement. Here's a funny quote from one of the links I included in my first post:

"The flip side of this is that you have to deal with old mistakes and with compatibility problems. For example, I consider the C declarator syntax an experiment that failed"

From this interview: Slashdot | Interviews | C++ Answers From Bjarne Stroustrup
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
PNutHed29-May-18 6:05
PNutHed29-May-18 6:05 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
englebart29-May-18 11:27
professionalenglebart29-May-18 11:27 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
ClockMeister29-May-18 13:19
professionalClockMeister29-May-18 13:19 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
david garlisch29-May-18 16:59
david garlisch29-May-18 16:59 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
jfbode102930-May-18 3:58
jfbode102930-May-18 3:58 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
Chad3F30-May-18 8:53
Chad3F30-May-18 8:53 
GeneralRe: Why does most C/C++ developer prefers char *c instead of char* c? Pin
code_junkie31-May-18 3:52
code_junkie31-May-18 3:52 
GeneralLife back to normal Pin
lopatir25-May-18 22:52
lopatir25-May-18 22:52 
GeneralRe: Life back to normal Pin
RickZeeland26-May-18 0:17
mveRickZeeland26-May-18 0:17 
GeneralRe: Life back to normal Pin
OriginalGriff26-May-18 0:31
mveOriginalGriff26-May-18 0:31 
GeneralRe: Life back to normal Pin
RickZeeland26-May-18 0:37
mveRickZeeland26-May-18 0:37 
GeneralRe: Life back to normal Pin
OriginalGriff26-May-18 1:10
mveOriginalGriff26-May-18 1:10 
GeneralRe: Life back to normal Pin
lopatir26-May-18 2:27
lopatir26-May-18 2:27 
GeneralLow profile Pin
RickZeeland25-May-18 20:30
mveRickZeeland25-May-18 20:30 
GeneralRe: Low profile Pin
CPallini25-May-18 21:14
mveCPallini25-May-18 21:14 
GeneralRe: Low profile Pin
RickZeeland25-May-18 22:17
mveRickZeeland25-May-18 22:17 
GeneralRe: Low profile Pin
CPallini25-May-18 22:47
mveCPallini25-May-18 22:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.