Skip to content

Instantly share code, notes, and snippets.

@laurentpetit
Created December 19, 2013 08:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save laurentpetit/8036025 to your computer and use it in GitHub Desktop.
Save laurentpetit/8036025 to your computer and use it in GitHub Desktop.
;; What do you prefer?
(def options {:option-1 SomeClass/OPTION_1})
(defn foo [ option ]
(if (keyword? option)
(options option)
option))
;; Or
(def options {:option-1 SomeClass/OPTION_1, SomeClass/OPTION_1 SomeClass/OPTION_1})
(defn foo [ option ] (options option))
@cgrand
Copy link

cgrand commented Dec 19, 2013

I prefer the 2nd option over the 1st one bu what about (options option option)?

@laurentpetit
Copy link
Author

I also prefer the second one.
and I really don't know why I just didn't think about (options option option), only reason may be everything seems fuzzy today ...

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