aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2017-05-26 12:49:15 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2017-05-26 12:49:15 +0200
commitfa892b99e7e612f2414ea2ff1da1f945da3ecad1 (patch)
treeb5f934977cff53bbbb12fd3b8af2096038e73955
parentf156c67e34b6eb892769e1312e618e116eba9bed (diff)
downloadell-fa892b99e7e612f2414ea2ff1da1f945da3ecad1.tar.gz
ell-fa892b99e7e612f2414ea2ff1da1f945da3ecad1.tar.xz
ell-fa892b99e7e612f2414ea2ff1da1f945da3ecad1.zip
Update README
-rw-r--r--README.adoc8
1 files changed, 6 insertions, 2 deletions
diff --git a/README.adoc b/README.adoc
index 2473802..ade07f2 100644
--- a/README.adoc
+++ b/README.adoc
@@ -167,8 +167,12 @@ Install development packages for GNU Readline to get a REPL for toying around:
Possible Ways of Complicating
-----------------------------
- * variable scoping: the simplest is to set values in the nearest scope they
- can be found in but make `arg` an exception to that, just like in AWK
+ * variable scoping: lexical scoping is deemed too complex. The simplest is to
+ look up and set values in the nearest dynamic scope they can be found in,
+ or globally if not found, and have `arg` create the scopes, which also makes
+ AWK-style local variables work. A convention of starting locally bound names
+ with an underscore can keep the global namespace always accessible, and even
+ overridable if needed.
* reference counting: currently all values are always copied as needed, which
is good enough for all imaginable use cases, simpler and less error-prone