Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Buggy formatting of dotted pairs #82

Open
jackfirth opened this issue Oct 31, 2024 · 0 comments
Open

Buggy formatting of dotted pairs #82

jackfirth opened this issue Oct 31, 2024 · 0 comments

Comments

@jackfirth
Copy link
Contributor

jackfirth commented Oct 31, 2024

This code:

(define (f stx)
  (syntax-case stx (module)
    [(module . rest) (void)]))

Is currently reformatted by fmt to this:

(define (f stx)
  (syntax-case stx (module)
    [(module . rest
       )
     (void)]))

As discussed here, that seems to be because fmt thinks (module . rest) is a normal module form and . is the module's name. The issue isn't specific to module; it probably affects all uses of dotted pairs.

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

No branches or pull requests

1 participant