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

Long hash expressions linebreak inconveniently #57

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

Long hash expressions linebreak inconveniently #57

jackfirth opened this issue Aug 9, 2024 · 0 comments

Comments

@jackfirth
Copy link
Contributor

fmt currently changes this code:

(define formulas
  (hash 'water (list 'hydrogen 'oxygen)
        'benzene (list 'hydrogen 'carbon)
        'glucose (list 'hydrogen 'oxygen 'carbon)))

into this:

(define formulas
  (hash 'water
        (list 'hydrogen 'oxygen)
        'benzene
        (list 'hydrogen 'carbon)
        'glucose
        (list 'hydrogen 'oxygen 'carbon)))

This is unfortunate. Perhaps treat hash expressions and other similarly shaped built-ins with some special logic? However, that wouldn't work for my sorted maps in Rebellion, which face the same issue.

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