about summary refs log tree commit diff stats
path: root/vocabulary.md
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-05-19 23:14:27 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-05-19 23:14:27 -0700
commit4b57c101b71727aa718216b90f7a255bab2427c6 (patch)
tree594f24a2cdcd9d9a2c012bdaa704093e92453c43 /vocabulary.md
parente2ab1b30b1a669425cb86ffa7def9529e7fa4fb1 (diff)
downloadmu-4b57c101b71727aa718216b90f7a255bab2427c6.tar.gz
more robust print-cell
It is used to print to the trace, and we shouldn't crash the whole computer
just because the trace ran out of space.
Diffstat (limited to 'vocabulary.md')
-rw-r--r--vocabulary.md6
1 files changed, 4 insertions, 2 deletions
diff --git a/vocabulary.md b/vocabulary.md
index 1408c1b4..a130b26b 100644
--- a/vocabulary.md
+++ b/vocabulary.md
@@ -35,8 +35,8 @@ how they work under the hood.
 
   Invariant: 0 <= `read` <= `write` <= `size`
 
-  Writes to a stream abort if it's full. Reads to a stream abort if it's
-  empty.
+  By default, writes to a stream abort if it's full. Reads to a stream abort
+  if it's empty.
 
 - Graphemes: 32-bit fragments of utf-8 that encode a single Unicode code-point.
 - Code-points: 32-bit integers representing a Unicode character.
@@ -106,6 +106,8 @@ The most useful functions from 400.mu and later .mu files. Look for definitions
 
 - `write`: writes a string into a stream of bytes. Doesn't support streams of
   other types.
+- `try-write`: writes a string into a stream of bytes if possible. Doesn't
+  support streams of other types.
 - `write-stream`: concatenates one stream into another.
 - `write-slice`: writes a slice into a stream of bytes.
 - `append-byte`: writes a single byte into a stream of bytes.