Skip to content

Commit

Permalink
Add some record code to the sandbox for testing #357
Browse files Browse the repository at this point in the history
  • Loading branch information
Olical committed May 28, 2022
1 parent 9880ab9 commit ace0350
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions dev/clojure/src/dev/sandbox.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,16 @@
(enable-console-print!)
(throw (js/Error. "ohno"))
:cljs/quit)

(defrecord Person [fname lname address])
(defrecord Address [street city state zip])

(def stu (Person. "Stu" "Halloway"
(Address. "200 N Mangum"
"Durham"
"NC"
27701)))

(comment
(clojure.pprint/pprint stu)
(pr stu))

0 comments on commit ace0350

Please sign in to comment.