Skip to content

Conversation

resyntax-ci[bot]
Copy link
Contributor

@resyntax-ci resyntax-ci bot commented Jun 20, 2025

Resyntax fixed 38 issues in 20 files.

  • Fixed 9 occurrences of let-to-define
  • Fixed 9 occurrences of define-lambda-to-define
  • Fixed 2 occurrences of single-clause-match-to-match-define
  • Fixed 2 occurrences of nested-if-to-cond
  • Fixed 2 occurrences of cond-let-to-cond-define
  • Fixed 2 occurrences of consing-onto-static-list
  • Fixed 2 occurrences of if-begin-to-cond
  • Fixed 2 occurrences of always-throwing-if-to-when
  • Fixed 2 occurrences of if-else-false-to-and
  • Fixed 1 occurrence of if-let-to-cond
  • Fixed 1 occurrence of case-lambda-with-single-case-to-lambda
  • Fixed 1 occurrence of define-values-values-to-define
  • Fixed 1 occurrence of define-let-to-double-define
  • Fixed 1 occurrence of inverted-when
  • Fixed 1 occurrence of format-identity

resyntax-ci bot added 17 commits June 20, 2025 01:15
`cond` with internal definitions is preferred over `if` with `let`, to reduce nesting
This `match` expression can be simplified using `match-define`.
Internal definitions are recommended instead of `let` expressions, to reduce nesting.
This use of `format` does nothing.
Using `cond` instead of `if` here makes `begin` unnecessary
This use of `define-values` is unnecessary.
This negated `when` expression can be replaced by an `unless` expression.
Using `when` and `unless` is simpler than a conditional with an always-throwing branch.
Internal definitions are recommended instead of `let` expressions, to reduce nesting.
This `if`-`else` chain can be converted to a `cond` expression.
This `case-lambda` form only has one case. Use a regular lambda instead.
The `define` form supports a shorthand for defining functions.
This `if` expression can be refactored to an equivalent expression using `and`.
This list-constructing expression can be simplified
This `let` expression can be pulled up into a `define` expression.
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 Jun 20, 2025

This seems to cause test failures, @jackfirth

Comment on lines +97 to +98
(match-define (tc-result1: t) (tc-expr/check e t))
t)
Copy link
Contributor

Choose a reason for hiding this comment

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

@samth I think this is the problem. Or something similar like this. Turns out match-define's semantics are a bit different than I expected: the t on the right hand side is bound to the t in the (tc-result1: t) pattern, not the t argument to tc-expr/check/t.

Copy link
Contributor

Choose a reason for hiding this comment

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

This should be fixed now.

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.

2 participants