Skip to content

Conversation

@resyntax-ci
Copy link
Contributor

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

Resyntax fixed 17 issues in 10 files.

  • Fixed 4 occurrences of let-to-define
  • Fixed 3 occurrences of printf-to-display
  • Fixed 2 occurrences of named-let-loop-to-for-in-range
  • Fixed 1 occurrence of list-element-definitions-to-match-define
  • Fixed 1 occurrence of named-let-loop-to-for/first-in-naturals
  • Fixed 1 occurrence of quasiquote-to-list
  • Fixed 1 occurrence of nested-for-to-for*
  • Fixed 1 occurrence of cond-else-if-to-cond
  • Fixed 1 occurrence of and-let-to-cond
  • Fixed 1 occurrence of if-let-to-cond
  • Fixed 1 occurrence of cond-let-to-cond-define

resyntax-ci bot added 12 commits December 7, 2025 00:48
Internal definitions are recommended instead of `let` expressions, to reduce nesting.
Using `cond` allows converting `let` to internal definitions, reducing nesting
Internal definitions are recommended instead of `let` expressions, to reduce nesting.
The `else`-`if` branch of this `cond` expression can be collapsed into the `cond` expression.
This named `let` expression is equivalent to a `for` loop that uses `in-range`.
This use of `printf` has no arguments other than the template string.
These nested `for` loops can be replaced by a single `for*` loop.
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 named `let` expression can be replaced by a simpler, equivalent `for/first` loop.
This quasiquotation is equialent to a simple `list` call.
This named `let` expression is equivalent to a `for` loop that uses `in-range`.
`cond` with internal definitions is preferred over `if` with `let`, to reduce nesting
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