Hacker News new | ask | show | jobs
by AstroBen 232 days ago
well yeah except const doesn't make objects or arrays immutable
2 comments

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.

I feel that Java’s “final” would have been a better choice than “const”. It doesn’t have the same confusing connotation.