Skip to content

Instantly share code, notes, and snippets.

@valbaca
Created October 14, 2024 05:05
Show Gist options
  • Save valbaca/a55cf9cdcb500e203cadc9ef3555daa0 to your computer and use it in GitHub Desktop.
Save valbaca/a55cf9cdcb500e203cadc9ef3555daa0 to your computer and use it in GitHub Desktop.
Clojure naming conventions
a agent
b body macro body
bind binding macro binding vector
c coll collection
c class
e expr expression
f g h function
i index
m map, matcher
& more varadic arg
n integer, usually size/length/count
p pred predicate
re regular expression
s string
x y z general variables, numbers
xs ys zs sequence
xf xform, transducer
@valbaca
Copy link
Author

valbaca commented Oct 14, 2024

e           error event
k           key (dictionary)
v           value (dictionary)

Looks like an existing list already exists: https://guide.clojure.style/#idiomatic-names

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment