Comment

Comment by qsort

Sure, but passing by value isn't always realistic. If you have a hashtable with a million entries, you can't copy it just to update a value.

There's also the problem of internal mutation of state, with hashtables/collections being again primary examples. It's not always avoidable to have internal mutation, but it shouldn't be the default, in most cases it's just wrong.

parent qsort 5 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton