3 ms·
I know you're being sarcastic, but since you bring it up, I think the -> operator in C(++) is awkward as heck. If dereferencing were a suffix operation as in Pa
by gurkendoktor 14y ago
I know you're being sarcastic, but since you bring it up, I think the -> operator in C(++) is awkward as heck. If dereferencing were a suffix operation as in Pascal, you could simply write p.foo instead of (p).foo.
I guess it'd break because of (a* +b) but that's just all the more reason to disallow whitespace around infix operators.
- gurkendoktor 14y agoStars eaten by HN formatting: It would be p^.foo instead of (^p).foo or p->foo. Less awkward when adding or removing one indirection level too.