clojure-style-guide
clojure-style-guide copied to clipboard
A community coding style guide for the Clojure programming language
Hi, there appears to be no guidance on function parameters. How should I name them? Also in kebab case? ``` (defn some-function [some-big-thing another_thing] ... ) ```
The guide advises to name tests: `(deftest foo-test ...)` But functions as `(defn foo ...)` Shouldn't it be: `(defn foo-function ...)` to be consistent? However, there is no need postfix...
Sometimes I find myself with a threading macro where I don't want the first argument to be on the same line as the threading symbols. For example ```clojure (->> x...
There are a handful of things that aren't covered in the Namespace Declaration section, that are mentioned in [Stuart Sierra's _How To `ns`_ style guide](https://stuartsierra.com/2016/clojure-how-to-ns.html). It's probably good to have...
Hi, Does anyone else have an opinion on the better style in these situations? Situation A. ```clojure ;; style A1 (defn f [{:keys [one two three}] (+ one two three)...
The style guide says to “gather trailing parentheses”. Does this imply that the following is incorrect? (“rich-comment” example from [yuhan0’s comment in Standard Clojure Style discussion](https://github.com/oakmac/standard-clojure-style-js/issues/60#issuecomment-2338026670)) ```clj ;; Incorrect? (comment...
I think the rules for margin comments are causing some confusion in [the related Standard Clojure Style discussion](https://github.com/oakmac/standard-clojure-style-js/issues/60): ## Problem The Clojure Style Guide’s [rules for margin comments](https://guide.clojure.style/#one-semicolon-for-margin-comments) states: 1....
Hello, Hungarian https://github.com/damesek/clojure-style-guide-hungarian Regards, Szabolcs
I've noticed that many Clojure programmers use `(catch Throwable t ...)` as a means of not dealing with Exceptions. However, this is poor Java practice given that Errors are generally...