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

Use keys of different length in let & map alignment example #219

Open
clyfe opened this issue Dec 23, 2020 · 1 comment
Open

Use keys of different length in let & map alignment example #219

clyfe opened this issue Dec 23, 2020 · 1 comment

Comments

@clyfe
Copy link

clyfe commented Dec 23, 2020

https://guide.clojure.style/#bindings-alignment
https://guide.clojure.style/#map-keys-alignment

:thing1 & :thing2 have the same length.
Use keys of different length in let & map alignment example, to make obvious that it's the keys to be aligned, not values.

{:thing1 thing1
 :long-thing long-thing}
@bbatsov
Copy link
Owner

bbatsov commented Dec 23, 2020

Fair point. We might also mention that it's fine to align the values as well, if one would like to make them stand out a bit more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants