Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
p100sch112172dWhy is it always so fucking hard to do pass by value in languages other than go?
p100sch112172d@lamka02sk a default clone function would do the trick. Having to implement it means a lot of samey functions and having a private constructor allowing access to private state. That's a lot of effort for something c++ and go do on the fly. And the reflection based nonsense kills my performance.
asgs831472d@cafebabe just read the MDN docs and it says it is only a "shallow" freeze