Skip to content

Conversation

@resyntax-ci
Copy link
Contributor

@resyntax-ci resyntax-ci bot commented Dec 14, 2025

Resyntax fixed 20 issues in 6 files.

  • Fixed 6 occurrences of provide/contract-to-contract-out
  • Fixed 6 occurrences of for-each-to-for
  • Fixed 2 occurrences of let-to-define
  • Fixed 1 occurrence of list-element-definitions-to-match-define
  • Fixed 1 occurrence of if-let-to-cond
  • Fixed 1 occurrence of named-let-loop-to-for/first-in-naturals
  • Fixed 1 occurrence of define-case-lambda-to-define
  • Fixed 1 occurrence of cond-void-to-when-or-unless
  • Fixed 1 occurrence of nested-for-to-for*

The `provide/contract` form is a legacy form made obsolete by `contract-out`.
`cond` with internal definitions is preferred over `if` with `let`, to reduce nesting
These list element variable definitions can be expressed more succinctly with `match-define`. Note that the suggested replacement raises an error if the list contains more elements than expected.
This conditional expression can be replaced with a simpler, equivalent expression.
These nested `for` loops can be replaced by a single `for*` loop.
This `for-each` operation can be replaced with a `for` loop.
This use of `case-lambda` is equivalent to using `define` with optional arguments.
Internal definitions are recommended instead of `let` expressions, to reduce nesting.
This named `let` expression can be replaced by a simpler, equivalent `for/first` loop.
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