Skip to content

chore: use SymbolRef as the Lang map key#1195

Open
arthurpaulino wants to merge 1 commit intomainfrom
ap/interned-symbols
Open

chore: use SymbolRef as the Lang map key#1195
arthurpaulino wants to merge 1 commit intomainfrom
ap/interned-symbols

Conversation

@arthurpaulino
Copy link
Copy Markdown
Contributor

@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
Copy Markdown
Contributor 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