Janet Notes and Examples

Modules, Packages, Libraries


import* is the function version of the import macro.

Use def-/defn-/var- if you don’t want the symbols to be available from outside the given module (that is, you don’t want them “exported”). The trailing dash is shorthand so you don’t have to put :private metadata on the definitions:

(var- s          "keep this private")  # is shorthand for
(var  s :private "keep this private")