Disclaimer:
The Standards:
Unroll optional named arguments. Callers should not have to wrap optional named arguments in a map literal:
(release-sharks 2 :laser-beams true) ; good
(release-sharks 2 {:laser-beams true}) ; bad
|
Use keyword-first syntax to access properties on objects:
(:property object-like-map) |
Use collection-first syntax to extract values from a collection (or use get if the collection might be nil).
(collection-like-map key) (get collection-like-map key) |
Note that not all collections are keyed by keyword.
*earmuffs* only for things intended for rebinding. Don't use a special notation for constants; everything is assumed a constant unless specified otherwise.in and with-in-str.db in sql), also provide an identical interface but with the parameter passed explicitly.@#'some.ns/var form