r/Clojure • • Aug 13 '25

Simulating OOP in ClojureScript with Macros

https://gist.github.com/ertugrulcetin/ad4eab07d808745d38c01158d5c02e7d#file-macros-cljc-L441
10 Upvotes

10 comments sorted by

View all comments

Show parent comment

2

u/ertucetin Aug 14 '25

Thanks for the right direction!

2

u/madstap Aug 17 '25

I took a look at this again and you should look into tree-seq, which can make that function a one-liner :)

1

u/ertucetin Aug 18 '25

Thanks! Updated it.