Skip to content

Instantly share code, notes, and snippets.

@ericbmerritt
Created January 3, 2012 17:53
Show Gist options
  • Save ericbmerritt/1556075 to your computer and use it in GitHub Desktop.
Save ericbmerritt/1556075 to your computer and use it in GitHub Desktop.
Example spec syntax for joxa
(module jxat-spec test)
(deftype+ foo (bar baz) {bar baz})
(deftype boo () :ok)
(deftype+ hoo (a) a)
(defspec internal-test () (foo :this :is))
(defn internal-test ()
{:this :is :a :test})
(defn+ (foo :this :is) do-test1 ()
{:this :is :a :test})
(defn+ (boo) do-test2 (((boo) z) ((hoo :ok) y))
{:this :is z})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment