aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2021-05-13 18:19:25 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2021-05-13 18:19:25 -0400
commit202568257c0efda6aa2509f4f3eb9f815e87e018 (patch)
treec0dad6b8900653601a828eaea5f59e096d121f83 /docs
parent365e8de6287fce6af6b6e1975ebde25aac027f5a (diff)
Remove references to namespaces not being implemented
Diffstat (limited to 'docs')
-rw-r--r--docs/doc/namespace.html1
-rw-r--r--docs/running.html2
-rw-r--r--docs/try.html2
3 files changed, 2 insertions, 3 deletions
diff --git a/docs/doc/namespace.html b/docs/doc/namespace.html
index c6f19582..935effca 100644
--- a/docs/doc/namespace.html
+++ b/docs/doc/namespace.html
@@ -6,7 +6,6 @@
<div class="nav"><a href="https://github.com/mlochbaum/BQN">BQN</a> / <a href="../index.html">main</a> / <a href="index.html">doc</a></div>
<h1 id="namespaces">Namespaces</h1>
<p>A namespace is a type of value that groups together several values (fields) from the same scope. A block or file returns a namespace if it contains any export arrows <code><span class='Gets'>⇐</span></code> at the top level, and fields from namespaces can be accessed with either dot syntax or destructuring assignment. A namespace that contains <code><span class='Gets'>↩</span></code> is mutable, so that its fields might change in value.</p>
-<p>The self-hosting BQN used for the online REPL doesn't support namespaces yet, but will eventually. dzaima/BQN does.</p>
<p>The following quick example shows a few ways to use a namespace returned by <code><span class='Function'>•Import</span></code>:</p>
<pre><span class='Value'>ns</span> <span class='Gets'>←</span> <span class='Function'>•Import</span> <span class='String'>&quot;file.bqn&quot;</span>
<span class='Bracket'>⟨</span><span class='Value'>something</span><span class='Separator'>,</span> <span class='Value'>abbr</span><span class='Gets'>⇐</span><span class='Value'>abbreviation</span><span class='Bracket'>⟩</span> <span class='Gets'>←</span> <span class='Value'>ns</span> <span class='Comment'># Destructure
diff --git a/docs/running.html b/docs/running.html
index 10e72c01..53d262d1 100644
--- a/docs/running.html
+++ b/docs/running.html
@@ -8,7 +8,7 @@
<p>There are currently two active BQN implementations: the self-hosted one in this repository, and the independent dzaima/BQN. Neither is entirely complete but they are quite capable for pure programming tasks (say, implementing a compiler). dzaima/BQN has good performance while self-hosted is a few hundred times slower. I tend to develop parts of applications in the online REPL and move to dzaima/BQN scripts in order to run them.</p>
<h3 id="self-hosted-bqn">Self-hosted BQN</h3>
<p>The online REPL is <a href="https://mlochbaum.github.io/BQN/try.html">here</a>. The file <a href="https://github.com/mlochbaum/BQN/blob/master/docs/bqn.js">docs/bqn.js</a> is zero-dependency Javascript, and can be loaded from HTML or Node.js. For command line use, call the Node.js script <a href="https://github.com/mlochbaum/BQN/blob/master/bqn.js">bqn.js</a>, passing a file and <code><span class='Value'>•args</span></code>, or <code><span class='Function'>-</span><span class='Value'>e</span></code> to execute all remaining arguments directly and print the results. <a href="https://observablehq.com/@lsh/bqn">This notebook</a> shows how to run it in an Observable notebook.</p>
-<p>Fully supports all primitives except a few cases of structural Under (<code><span class='Modifier2'>⌾</span></code>), but still missing some advanced features: namespaces, block headers and multiple body syntax, derived 1-modifiers, and block returns.</p>
+<p>Fully supports all primitives except a few cases of structural Under (<code><span class='Modifier2'>⌾</span></code>), but still missing some advanced features: block headers and multiple body syntax, derived 1-modifiers, and block returns.</p>
<p>This version of BQN is <a href="implementation/index.html">implemented</a> mainly in BQN itself, but a host language supplies basic functionality and can also replace primitives for better performance. This also allows <a href="doc/embed.html">embedding</a>, where programs in the host language can include BQN code. Support in the following languages has been implemented:</p>
<ul>
<li>Javascript; see above. Slow (compiles at ~5kB/s) but usable.</li>
diff --git a/docs/try.html b/docs/try.html
index 8fa61889..d5871c0d 100644
--- a/docs/try.html
+++ b/docs/try.html
@@ -32,7 +32,7 @@
<ul>
<li>You can type special characters with a back<em>slash</em> prefix, as shown by hovering over the character bar above. Documentation links for primitives are <a href="doc/primitive.html#functions">here</a>.</li>
<li>Any modifier with enter will execute, not just shift. The code window is vertically resizeable.</li>
- <li>Support for function headers and multiple bodies, and namespaces, is missing.</li>
+ <li>Support for function headers and multiple bodies is missing.</li>
</ul>
</p>