Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
maleldil
42 days ago
|
parent
|
context
|
favorite
| on:
John Carmack on mutable variables
I'd argue that it is. Use const by default, so it's obvious to the reader if something is mutated or not. It's easier to read code when you don't have to worry about how values may change over time. This is why Rust made the right choice.
loeg
41 days ago
[–]
Yeah, I think it's a great default, and Rust got that right. It's just too noisy in C++ as the non-default.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: