HackerTrans
TopNewTrendsCommentsPastAskShowJobs

yr_robot_master

no profile record

comments

yr_robot_master
·vor 2 Jahren·discuss
> I could tell similar stories for other languages that I don’t like programming in. These languages include JavaScript, Go, Java, and C++.

...

> The thing I hate about all of the languages I listed is their emphasis on mutation. When I call a function and pass it a list or object or whatever, I have no guarantees about that thing’s value when the function returns.

This is not true for C++, where the 'const' keyword allows you to disallow mutation. Perhaps the author would complain that this behavior isn't the default, but the functionality exists.