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

chore: use SymbolRef as the Lang map key #1195

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

arthurpaulino
Copy link
Member

@arthurpaulino arthurpaulino commented Mar 5, 2024

Refactor Lang and adapt the rest of the codebase

Closes #1191

@arthurpaulino arthurpaulino requested review from a team as code owners March 5, 2024 12:04
@arthurpaulino arthurpaulino marked this pull request as draft March 5, 2024 12:23
@arthurpaulino arthurpaulino marked this pull request as ready for review March 5, 2024 22:54
Comment on lines -321 to -324
// TODO: should `Lang` hold `Arc<Symbol>` instead?
lang.add_coprocessor((*new_sym).clone(), NewCoprocessor::default());
lang.add_coprocessor((*lookup_sym).clone(), LookupCoprocessor::default());
lang.add_coprocessor((*insert_sym).clone(), InsertCoprocessor::default());
Copy link
Member Author

Choose a reason for hiding this comment

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

This is less cumbersome now

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.

Avoid dangling symbols
1 participant