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

Lexer & Parser: Adding support for decorator #558

Merged
merged 1 commit into from
Feb 11, 2025

Conversation

kengorab
Copy link
Owner

This is take 2 of this change, as I was unhappy with the way I did it the first time around. Basically, this time I decided to implement decorators as just being syntactic wrapper on top of existing type declarations. They'll have all the same semantics when it comes to typechecking, and implementing them in terms of existing type declarations saves from having a lot of duplicate logic.

This is take 2 of this change, as I was unhappy with the way I did it
the first time around. Basically, this time I decided to implement
decorators as just being syntactic wrapper on top of existing `type`
declarations. They'll have all the same semantics when it comes to
typechecking, and implementing them in terms of existing type
declarations saves from having a lot of duplicate logic.
@kengorab kengorab merged commit 9e49bf1 into master Feb 11, 2025
1 check passed
@kengorab kengorab deleted the add-decorators/lexing-parsing-2 branch February 11, 2025 01:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant