git » homepage.git » master » tree

[master] / archive / forums / hacker-news / raw / items / 8925690.json

{"by":"lukev","id":8925690,"kids":[8926982],"parent":8924865,"text":"<p><pre><code>  #+clj\n  (defmacro my-macro []\n    (cond\n      (contains? *features* :clj)  `(some-clojure-thing)\n      (contains? *features* :cljs) `(some-cljs-thing)))\n</code></pre>\nIf that was too verbose for you, you could of course write a `feature-case` <i>function</i> that looks almost identical to what you have in that example.","time":1421873652,"type":"comment"}