aagaau@alien.topB to Lisp@communick.newsEnglish · 1 year agoPrivate Methods in Clojureyoutu.beexternal-linkmessage-square1fedilinkarrow-up11arrow-down11cross-posted to: clojure@lemmy.ml
arrow-up10arrow-down1external-linkPrivate Methods in Clojureyoutu.beaagaau@alien.topB to Lisp@communick.newsEnglish · 1 year agomessage-square1fedilinkcross-posted to: clojure@lemmy.ml
minus-squareseancorfield@alien.topBlinkfedilinkEnglisharrow-up1·1 year agoPrivate is an illusion in Clojure. You can call (#'p/truth) to call a “private” function. Also, although there is no def-, you can have private “constants”: (def ^:private meaning-of-death ..)
Private is an illusion in Clojure. You can call
(#'p/truth)
to call a “private” function.Also, although there is no
def-
, you can have private “constants”:(def ^:private meaning-of-death ..)