Skip to content

Conversation

resyntax-ci[bot]
Copy link
Contributor

@resyntax-ci resyntax-ci bot commented Oct 3, 2025

Resyntax fixed 30 issues in 14 files.

  • Fixed 5 occurrences of let-to-define
  • Fixed 5 occurrences of match-conditional-to-when
  • Fixed 4 occurrences of define-lambda-to-define
  • Fixed 4 occurrences of define-lambda-to-curried-define
  • Fixed 3 occurrences of read-line-any
  • Fixed 2 occurrences of if-begin-to-cond
  • Fixed 2 occurrences of explicit-cond-else-void
  • Fixed 1 occurrence of single-clause-match-to-match-define
  • Fixed 1 occurrence of and-let-to-cond
  • Fixed 1 occurrence of case-lambda-with-single-case-to-lambda
  • Fixed 1 occurrence of cond-let-to-cond-define
  • Fixed 1 occurrence of inverted-when

resyntax-ci bot added 13 commits October 3, 2025 01:07
Specify a line mode of `'any` with `read-line` to avoid differences between Windows and other platforms.
This conditional in a `match` clause can be simplified using `#:when`.
Using `cond` instead of `if` here makes `begin` unnecessary
This negated `when` expression can be replaced by an `unless` expression.
This `match` expression can be simplified using `match-define`.
Internal definitions are recommended instead of `let` expressions, to reduce nesting.
This `case-lambda` form only has one case. Use a regular lambda instead.
Using `cond` allows converting `let` to internal definitions, reducing nesting
Add an explicit `[else (void)]` clause to make the default behavior clear.
Functions returning lambdas can be written using curried function syntax.
The `define` form supports a shorthand for defining functions.
Internal definitions are recommended instead of `let` expressions, to reduce nesting.
Internal definitions are recommended instead of `let` expressions, to reduce nesting.
@samth
Copy link
Member

samth commented Oct 3, 2025

I continue to be unhappy about the formatting choices that raco fmt makes but I don't think it's productive to hold up resyntax for that, so I'm going to merge this.

@samth samth merged commit a25a909 into master Oct 3, 2025
3 checks passed
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