Reid D McKenzie
Reid D McKenzie
After what three years of debating this back and forth purely on anecdotal grounds it seems clear to me that there is not a consensus on "good style" which we...
`def-` and soforth don't exist for good reason, you get a combinatorial explosion for every variation. Having `def-` begs the question of why we don't have `defmulti-`, `defprotocol-` and on...
There are some projects where people attempted to java-style provide a public API hiding implementation details and helper functions... my experience with `^:private` is that I've just used `#'` to...
2nd style should be preferred. `try` is like `do` or `let` in that all body forms should be broken onto the next line(s).
Well this is a repo of opinions about things that don't really matter :stuck_out_tongue: That said, I'll chime in for the 1/2spc indent rather than the width of op indent....
Preference of `are` for multiple `is` examples.
I mean... if you wanna get _really_ nitpicky `#"^.*?-test$"` is poor style since it's a postfixing convention which should be fully folded into the namespace's name. Using qualified refers to...
So the easy fix is just to outlaw use of `defn` and insist that everyone write `(def ... (fn* ... ))` the indentations and forms of which are well understood...
Heh. Indeed. Eastwood has a checker for exactly such docstring misplacement bugs :stuck_out_tongue:
``` Clojure nrepl> (time (do ;; vs. (into {} (for [n (range 10000000)] [n n])) nil)) "Elapsed time: 14067.538884 msecs" nil nrepl> (time (do ;; vs. (into {} (for [n...