mirror of
https://github.com/janet-lang/janet
synced 2025-08-28 16:42:25 +00:00
Clarify :fresh usage in import
This commit is contained in:
parent
91b7bcad3d
commit
c4e3fa03fa
@ -3181,9 +3181,9 @@
|
|||||||
use the name of the module as a prefix. One can also use "`:export true`"
|
use the name of the module as a prefix. One can also use "`:export true`"
|
||||||
to re-export the imported symbols. If "`:exit true`" is given as an argument,
|
to re-export the imported symbols. If "`:exit true`" is given as an argument,
|
||||||
any errors encountered at the top level in the module will cause `(os/exit 1)`
|
any errors encountered at the top level in the module will cause `(os/exit 1)`
|
||||||
to be called. Dynamic bindings will NOT be imported. Use :fresh to bypass the
|
to be called. Dynamic bindings will NOT be imported. Use :fresh with a truthy
|
||||||
module cache. Use `:only [foo bar baz]` to only import select bindings into the
|
value to bypass the module cache. Use `:only [foo bar baz]` to only import
|
||||||
current environment.``
|
select bindings into the current environment.``
|
||||||
[path & args]
|
[path & args]
|
||||||
(def ps (partition 2 args))
|
(def ps (partition 2 args))
|
||||||
(def argm (mapcat (fn [[k v]] [k (case k :as (string v) :only ~(quote ,v) v)]) ps))
|
(def argm (mapcat (fn [[k v]] [k (case k :as (string v) :only ~(quote ,v) v)]) ps))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user