-
Notifications
You must be signed in to change notification settings - Fork 5
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
design per-project config and user-config #5
Comments
My experience with code formatters is that it's actually bad when they're customizable per-project and per-user. It prevents the language from having a consistent style across its ecosystem. Example code in different libraries looking wildly different is a problem, for instance. Racket isn't just one language though: through the |
https://github.com/aowens-21/racket-formatting by @aowens-21 and @shhyou attempts to handle that aspect, IIUC. From a quick glance, their library differs from mine in that it consistently uses one style throughout the whole program even though doing so will exceed the column limit, and it doesn't handle comments. I do not know if The way I imagined While you are totally correct that customization is primarily meant to support new macros (see e.g. https://github.com/sorawee/fmt/blob/master/.fmt.rkt), I also don't want to dictate how the program should be formatted. If some people strongly believe in how something should be formatted, I want to allow them do that. After all, this is in the same spirit as how Racket allows people customizing stuff (like creating their own collection library :D) even though it won't immediately integrate well to the ecosystem. |
And perhaps provide a way to prefer user config but falls back to project config -- or vice versa.
The text was updated successfully, but these errors were encountered: