clj-commons / clj-commons/formatter

Formatting let bindings

Open
#8 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
35
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Similar to #7 on formatting maps, how should let bindings be formatted? Should all of the `init-form`s (right hand side) be aligned, or have a ragged alignment?

```clj
(let [a nil
very-long-symbol {}])

;; or

(let [a nil
very-long-symbol {}])
```

Should lines that are destructuring collections be handled differently? They can get very long and would cause large gaps in `let` bindings if they were included.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.