Skip to content

Serialize local vars early on#2117

Closed
sentrivana wants to merge 2 commits into
masterfrom
ivana/repr-vars-ealier
Closed

Serialize local vars early on#2117
sentrivana wants to merge 2 commits into
masterfrom
ivana/repr-vars-ealier

Conversation

@sentrivana
Copy link
Copy Markdown
Contributor

@sentrivana sentrivana commented May 16, 2023

No need to have actual references floating around. This also helps us avoid tampering with the underlying objects by mistake later on.

The "proper" way to do this would be to somehow yank var serialization out of the serializer to be able to use it standalone, but this would be a huge undertaking and possible source of bugs due to how complicated the serializer is. Which is doubly problematic given how integral it is. So what I opted for instead is a minimally invasive approach.

WIP: still getting this right and will probably add another test.

No need to have actual references floating around.
@sentrivana
Copy link
Copy Markdown
Contributor Author

Closing, I think I found a better way.

@sentrivana sentrivana closed this May 17, 2023
@sentrivana sentrivana deleted the ivana/repr-vars-ealier branch May 22, 2023 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant