aagaau@alien.topB to LispEnglish · 1 year agoPrivate Methods in Clojureyoutu.beexternal-linkmessage-square1fedilinkarrow-up11arrow-down11
arrow-up10arrow-down1external-linkPrivate Methods in Clojureyoutu.beaagaau@alien.topB to LispEnglish · 1 year agomessage-square1fedilink
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 ..)