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

Add INamed interface for Keywords and Symbols #885

Merged
merged 1 commit into from
Feb 21, 2024

Conversation

chrisrink10
Copy link
Member

@chrisrink10 chrisrink10 commented Feb 21, 2024

This PR introduces the INamed interface (similar to Clojure's Named) which is applied to the Keyword and Symbol classes. Having an interface for this allows us to perform type checking for relevant features (in particular, the existence of a name or namespace) without needing the import either class directly (thus avoiding circular dependencies).

I also added type annotations for the Lisp representation keyword arguments (which is a useful addition ahead of #882 merging).

Fixes #884

@chrisrink10 chrisrink10 marked this pull request as ready for review February 21, 2024 14:45
@chrisrink10 chrisrink10 merged commit cd62689 into main Feb 21, 2024
11 checks passed
@chrisrink10 chrisrink10 deleted the feature/named-interface branch February 21, 2024 14:49
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.

Add INamed interface for Keywords and Symbols
1 participant