small docs updates, add trailing slash to autocompleted directories
This commit is contained in:
parent
8ba80979f8
commit
09b032271b
3 changed files with 15 additions and 15 deletions
|
|
@ -30,22 +30,21 @@
|
|||
(def set
|
||||
'sets an existing variable without touching its docstring.
|
||||
|
||||
WARNING: abandon hope all ye who declare and then modify global variables!
|
||||
WARNING:
|
||||
If you find yourself struggling to debug a complex error in state access,
|
||||
or you are having issues re-running commands in the shell consider the
|
||||
following advice:
|
||||
|
||||
It is very much an anti pattern to mutate global variable that contain state
|
||||
It is very much an anti pattern to mutate global variable that contain state.
|
||||
refactor your program: put iterators, counters, procedurally generated code,
|
||||
and all other mutable state into a let loop.
|
||||
|
||||
A zen script in relish is one where each root level form (or eval at repl)
|
||||
A cozy script in relish is one where each root level form (or eval at repl)
|
||||
is self contained, and does not permanently modify any other one.
|
||||
|
||||
See the userlib tests for an easy to follow example of this.'
|
||||
|
||||
(var val)
|
||||
|
||||
(let ((doc (get-doc var)))
|
||||
(def (eval var) doc val)))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue