Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
uecker
1mo ago
0 comments
Share
I think it is simpler and "the compiler not helping" == "things are more transparent".
int a = 3; foo(a); // What value has a ?
There are various things one does not have to worry about when using C instead of C++. But the brain needs some time to get used to it.
0 comments
default
newest
oldest
wasmperson
1mo ago
I think I get what you're trying to say, but you may have picked a bad example, here:
#define foo(a) a = 12
uecker
OP
1mo ago
Yes, but this is more a theoretical problems while references are common in C++.
j
/
k
navigate · click thread line to collapse