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

Tweak formatter #261

Open
DavePearce opened this issue Sep 26, 2024 · 1 comment
Open

Tweak formatter #261

DavePearce opened this issue Sep 26, 2024 · 1 comment

Comments

@DavePearce
Copy link
Collaborator

DavePearce commented Sep 26, 2024

The general feeling is that the format command breaks lines to easily. It would be better if it preferred to print and print things as one line, and only breaks lines when it needs to.

For example, this should be preferred (since it fits on one line):

(defun (wierd) (if P (eq X 1) (eq X 2)))

Over this (which is what is currently produced):

(defun (wierd)
  (if P
      (eq X 1)
      (eq X 2)))
@DavePearce
Copy link
Collaborator Author

Other examples:

(+ (* (^ 256 (- X 0))
                          (shift [L 0] Y))

should be

(+ (* (^ 256 (- X 0)) (shift [L 0] Y))

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