←back to thread

498 points azhenley | 2 comments | | HN request time: 0.483s | source
Show context
shmerl ◴[] No.45768080[source]
Proposing making immutable by default in C or C++ doesn't make sense due to backwards compatibility reasons. New languages like Rust have easier time making better choices with immutable by default.
replies(4): >>45768149 #>>45768408 #>>45771014 #>>45773596 #
1. loeg ◴[] No.45768149[source]
cpp2/cfront could plausibly do this, right? Except he doesn't want to:

https://github.com/hsutter/cppfront/wiki/Design-note%3A-cons...

replies(1): >>45768185 #
2. shmerl ◴[] No.45768185[source]
Well, if they are willing to break backwards compatibility, a lot of things can be improved, including this.