HN2
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
AstroBen
3 months ago
|
parent
|
context
|
favorite
| on:
John Carmack on mutable variables
well yeah except const doesn't make objects or arrays immutable
MetaWhirledPeas
3 months ago
|
next
[–]
Yeah it makes their structure immutable? Something like that. Not useless but not what you would expect.
But for non-objects and non-arrays it's fine.
catlifeonmars
3 months ago
|
prev
[–]
I feel that Java’s “final” would have been a better choice than “const”. It doesn’t have the same confusing connotation.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: