Created
January 3, 2012 17:53
-
-
Save ericbmerritt/1556075 to your computer and use it in GitHub Desktop.
Example spec syntax for joxa
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
(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