Skip to content

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

@jackfirth

Description

@jackfirth

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions