Created
May 25, 2017 06:41
-
-
Save LukasRychtecky/fbc85fd67775b8b595b8ba73e3bd03d1 to your computer and use it in GitHub Desktop.
Over-using destructuring in Clojure
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn render | |
[{{poster :poster} :data :as notification}] | |
...) | |
vs. | |
(defn render | |
[notification] | |
(let [poster (-> notification :data :poster)] | |
...) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment