mirror of
				https://github.com/janet-lang/janet
				synced 2025-10-31 15:43:01 +00:00 
			
		
		
		
	Clarify :fresh usage in import
This commit is contained in:
		| @@ -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)) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 sarna
					sarna