Skip to content

Conversation

@resyntax-ci
Copy link
Contributor

@resyntax-ci resyntax-ci bot commented Mar 26, 2025

Resyntax fixed 20 issues in 1 file.

  • Fixed 13 occurrences of let-to-define
  • Fixed 7 occurrences of define-lambda-to-define

resyntax-ci bot added 2 commits March 26, 2025 00:31
Internal definitions are recommended instead of `let` expressions, to reduce nesting.
The `define` form supports a shorthand for defining functions.
(let-values ([(x y) (ct-find main x)])
y))
subs)))
(define sorted-subs (sort subs (λ (x y) (< (left-edge-x main x) (left-edge-x main y)))))
Copy link
Contributor

Choose a reason for hiding this comment

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

@jackfirth not sure if this is a good idea, but this could potentially be refactored to (sort subs < #:key (lambda (x) (left-edge-x main x)))

Copy link
Contributor

Choose a reason for hiding this comment

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

@sorawee That rule already exists, but it only fires in cases where no lambdas are needed. It doesn't seem clearer to me if you still need a lambda afterward.

@mflatt
Copy link
Member

mflatt commented Jun 26, 2025

Conflicts with newer merges.

@mflatt mflatt closed this Jun 26, 2025
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.

4 participants