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

Automated Resyntax fixes #1147

Closed
wants to merge 5 commits into from
Closed

Automated Resyntax fixes #1147

wants to merge 5 commits into from

Conversation

resyntax-ci[bot]
Copy link
Contributor

@resyntax-ci resyntax-ci bot commented Feb 2, 2025

Resyntax fixed 10 issues in 3 files.

  • Fixed 6 occurrences of inverted-when
  • Fixed 1 occurrence of let-to-define
  • Fixed 1 occurrence of apply-append-for-loop-to-for-loop
  • Fixed 1 occurrence of define-lambda-to-define
  • Fixed 1 occurrence of if-else-false-to-and

resyntax-ci bot added 5 commits February 2, 2025 01:28
Internal definitions are recommended instead of `let` expressions, to reduce nesting.
Instead of using `(apply append ...)` to flatten a list of lists, consider using `for*/list` to flatten the list.
The `define` form supports a shorthand for defining functions.
This negated `when` expression can be replaced by an `unless` expression.
This `if` expression can be refactored to an equivalent expression using `and`.
(for/list ([impl (in-list impls)])
`(,@(impl-info impl 'itype) ,(impl-info impl 'otype))))))
(remove-duplicates (for*/list ([impl (in-list impls)]
[v (in-list `(,@(impl-info impl 'itype) ,(impl-info impl
Copy link
Contributor

Choose a reason for hiding this comment

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

Again, @jackfirth , this doesn't feel like an improvement

@pavpanchekha pavpanchekha deleted the autofix-14-1 branch February 25, 2025 00:04
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.

1 participant