r/Clojurescript • • Jun 14 '20

Private functions clojurescript

I'm playing around with clojurescript/reagent and noticed that (defn- function [] ...) doesn't work. Does that mean there are no private functions in CLJS?

7 Upvotes

4 comments sorted by

View all comments

Show parent comment

2

u/SimonGray Jun 14 '20

I'm pretty sure you get a warning if you access a private function from a different namespace, so that is not entirely true.