Skip to content

Why does proxy() internally create a copy of the object? #756

Answered by dai-shi
pastelmind asked this question in Q&A
Discussion options

You must be logged in to vote

It's the design choice.
We assume the initial object as immutable objects, and do not modify it. So that proxy() is being a pure function.
We've discussed this somewhere else, and because this behavior isn't configurable, I'm planning to change the design in the next major version: #703

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by pastelmind
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants