Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
fourthark
on March 28, 2020
|
parent
|
context
|
favorite
| on:
What If C++ Abandoned Backward Compatibility?
No, postfix increment returns an rvalue, so it can’t be applied twice. (jk)
rini17
on March 28, 2020
[–]
Ah of course. So name it instead C+=2
fourthark
on March 29, 2020
|
parent
[–]
Looks like you could have (++C)++
fetbaffe
on March 30, 2020
|
root
|
parent
[–]
If the idea is to remove old & deprecated features from C++ that would be (C++)—-
fourthark
on March 30, 2020
|
root
|
parent
[–]
You can't do that because of the rvalue problem I mentioned above. Only (++C)-- and (--C)++ are allowed!
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: