Skip to content

Instantly share code, notes, and snippets.

@gorsuch
Created December 1, 2011 18:37
Show Gist options
  • Star 51 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save gorsuch/1418850 to your computer and use it in GitHub Desktop.
Save gorsuch/1418850 to your computer and use it in GitHub Desktop.
clojure uuid
(defn uuid [] (str (java.util.UUID/randomUUID)))
@camdez
Copy link

camdez commented Aug 28, 2017

@kenfehling It's not particularly weird or bad, but one small downside is that the function will lack the :arglists metadata the way you've written it (try running (:arglists (meta #'uuid))), which some development tooling might rely on to show you how to call the function.

@carbon-hvze
Copy link

thanks!

@aarkerio
Copy link

aarkerio commented Mar 4, 2020

¡Hartas gracias!

@siddharthjain-in
Copy link

thanks!

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