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

idea: allow for single lines in the ns form #37

Closed
oakmac opened this issue Aug 14, 2024 · 2 comments
Closed

idea: allow for single lines in the ns form #37

oakmac opened this issue Aug 14, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@oakmac
Copy link
Owner

oakmac commented Aug 14, 2024

We should allow for single line expressions in the ns form if they are sufficiently short.

I need to come up with some examples here, but I think this may result in cleaner ns forms in some cases.

@oakmac oakmac added the enhancement New feature or request label Aug 29, 2024
@imrekoszo
Copy link
Contributor

Not sure what you're referring to here, but if it's this:

(ns my.company.core
  (:require [clojure.string :as str]))

then consider that adding a second require to the above would result in a 3-line diff as opposed to a 1 or 2-line if the starting point was:

(ns my.company.core
  (:require
   [clojure.string :as str]))

@oakmac
Copy link
Owner Author

oakmac commented Oct 20, 2024

Closing this for now. Issue #88 has some related discussion.

@oakmac oakmac closed this as completed Oct 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants