clojure-style-guide icon indicating copy to clipboard operation
clojure-style-guide copied to clipboard

Use keys of different length in let & map alignment example

Open clyfe opened this issue 4 years ago • 1 comments

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}

clyfe avatar Dec 23 '20 14:12 clyfe

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.

bbatsov avatar Dec 23 '20 15:12 bbatsov