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 begin0-let-to-define-begin0 rule #263

Merged
merged 1 commit into from
Sep 2, 2024
Merged

Conversation

jackfirth
Copy link
Owner

In this code, there's a let expression immediately within a begin0 expression to compute a variable needed for the result of the begin0 expression. But if that let is lifted up into a define, the code becomes far more readable.

In [this code](https://github.com/jackfirth/yaragg/blob/9d48ab7152003e39aa6c1bab11a601d3723143fa/parser-tools/yacc-to-scheme.rkt#L115-L129), there's a `let` expression immediately within a `begin0` expression to compute a variable needed for the result of the `begin0` expression. But if that `let` is lifted up into a `define`, the code becomes far more readable.
@jackfirth jackfirth added the new lint Issues suggesting new lints or pull requests implementing new lints label Sep 2, 2024
@jackfirth jackfirth merged commit dd2b543 into master Sep 2, 2024
2 checks passed
@jackfirth jackfirth deleted the feature-begin0-let branch September 2, 2024 03:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new lint Issues suggesting new lints or pull requests implementing new lints
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant