Y
Hacker News
new
|
ask
|
show
|
jobs
by
AstroBen
232 days ago
well yeah except const doesn't make objects or arrays immutable
2 comments
MetaWhirledPeas
232 days ago
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.
link
catlifeonmars
232 days ago
I feel that Java’s “final” would have been a better choice than “const”. It doesn’t have the same confusing connotation.
link
But for non-objects and non-arrays it's fine.