3

Javascript objects and mutability? Never heard of it ¯\_(ツ)_/¯

Comments
  • 1
    Why is it always so fucking hard to do pass by value in languages other than go?
  • 2
    @p100sch Can you imagine how much memory would webapps consume? You can't expect all those "programmers" to know how to use these things properly.
  • 0
    @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.
  • 1
    @cafebabe just read the MDN docs and it says it is only a "shallow" freeze
Add Comment