Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Scope): improve the support of local bindings #105

Merged
merged 3 commits into from
May 17, 2023
Merged

Conversation

favonia
Copy link
Collaborator

@favonia favonia commented May 17, 2023

This will be a big update...

  1. Deprecate Scope.modify in favor of Scope.modify_standalone because I feel "modify" is too ambiguous
  2. Add import_singleton to improve the support of local bindings.
  3. Fix and clean up more documentation

@favonia favonia requested a review from jonsterling May 17, 2023 16:25
@favonia favonia force-pushed the local-bindings branch 2 times, most recently from f938ed0 to 52b75ea Compare May 17, 2023 16:34
Copy link
Contributor

@jonsterling jonsterling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like a nice API, but I still want to understand why the version without this works. I wonder if we can write some tests to demonstrate the bad behavior?

1. Add the optimized `import_singleton` for local bindings
2. Fix the documentation of `section` and other functions.
@favonia favonia changed the title feat(Scope): support local bindings feat(Scope): improve the support of local bindings May 17, 2023
@favonia favonia requested a review from jonsterling May 17, 2023 17:26
Copy link
Contributor

@jonsterling jonsterling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thank you for this!

@favonia favonia merged commit c12f9c5 into main May 17, 2023
@favonia favonia deleted the local-bindings branch May 17, 2023 18:26
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.

2 participants