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

Structs with short type properties get forced onto two lines #65

Open
jackfirth opened this issue Aug 21, 2024 · 0 comments
Open

Structs with short type properties get forced onto two lines #65

jackfirth opened this issue Aug 21, 2024 · 0 comments

Comments

@jackfirth
Copy link
Contributor

This code:

(struct point (x y)
  #:guard (λ (x y _) (values x y))
  #:property prop:custom-print-quotable 'never
  #:inspector #false)

Gets reformatted into this:

(struct point (x y)
  #:guard (λ (x y _) (values x y))
  #:property prop:custom-print-quotable
  'never
  #:inspector #false)

That seems less than ideal. If the value associated with the property was a long and complicated lambda, I think this would make more sense. But if it's just a short and simple value, keeping the entire property declaration on one line seems more readable.

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