⇦ Back to Janet API Survey

*defdyn-prefix* (keyword)

*defdyn-prefix* is bound to the keyword :defdyn-prefix—it provides a global alias to the :defdyn-prefix dynamic binding. When set, :defdyn-prefix indicates a namespace prefix for bindings created with defdyn. Its primarily used to prevent name collisions between dynamic bindings.

repl> (root-env '*defdyn-prefix*)
@{:doc "Optional namespace prefix to add to keywords declared with `defdyn`.\n  Use this to prevent keyword collisions between dynamic bindings."
  :dyn true
  :source-map ("boot.janet" 1333 1)
  :value :defdyn-prefix}

Things I Learned

Created: