Skip to content

Conversation

@resyntax-ci
Copy link
Contributor

@resyntax-ci resyntax-ci bot commented May 4, 2025

Resyntax fixed 20 issues in 4 files.

  • Fixed 10 occurrences of let-to-define
  • Fixed 3 occurrences of send-chain-to-send+
  • Fixed 2 occurrences of if-let-to-cond
  • Fixed 1 occurrence of hash-set!-ref-to-hash-update!
  • Fixed 1 occurrence of hash-for-each-to-for
  • Fixed 1 occurrence of if-then-true-else-false-to-condition
  • Fixed 1 occurrence of unless-expression-in-for-loop-to-unless-keyword
  • Fixed 1 occurrence of sort-with-keyed-comparator-to-sort-by-key

resyntax-ci bot added 8 commits May 4, 2025 00:11
This method chain made of nested `send` expressions can be written more clearly as a `send+` expression.
This expression can be replaced with a simpler, equivalent `hash-update!` expression.
Use the `#:unless` keyword instead of `unless` to reduce loop body indentation.
This `hash-for-each` operation can be replaced with a `for` loop.
`cond` with internal definitions is preferred over `if` with `let`, to reduce nesting
Internal definitions are recommended instead of `let` expressions, to reduce nesting.
This `sort` expression can be replaced with a simpler, equivalent expression.
The condition of this `if` expression is already a boolean and can be used directly.
@rfindler
Copy link
Member

rfindler commented May 4, 2025

I don't see any problems from reading the diff.

(test:set-radio-box-item! "No debugging or profiling")
(let ([f (test:get-active-top-level-window)])
(test:button-push "OK")
(wait-for-new-frame f)))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Resyntax missed an opportunity to inline this begin form. Fixing in jackfirth/resyntax#455.

@jackfirth jackfirth merged commit 74b0e4c into master May 7, 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.

3 participants