Last active
January 26, 2019 15:44
-
-
Save darwin/8dda48153fcbd3bc3e2d700f3e0eea00 to your computer and use it in GitHub Desktop.
fat cond
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
#!/usr/bin/env bash | |
clj -Srepro -m cljs.main -co @compiler-opts.edn -c repro |
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
{:source-paths ["."] | |
:warnings {:single-segment-namespace false}} |
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
{:paths ["."] | |
:deps {org.clojure/clojure {:mvn/version "1.10.0"} | |
org.clojure/clojurescript {:mvn/version "1.10.439"}}} |
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
(ns repro) | |
(defmacro fat-cond [n] | |
(let [clauses (repeat n [`false `(cljs.core/do)])] | |
`(cond | |
~@(flatten clauses)))) |
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
(ns repro | |
(:require-macros [repro :refer [fat-cond]])) | |
(fat-cond 10000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment