about summary refs log tree commit diff stats
path: root/cpp/020array
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-04-16 10:35:49 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-04-16 10:35:49 -0700
commitdb5c9550e972d114aaabb95b14cfd1e3ea185349 (patch)
tree9217134d1154e45f5375f94c9b5788530fbf8cb7 /cpp/020array
parentd6852155e5308e2bb347402bf9e069c7153c2319 (diff)
downloadmu-db5c9550e972d114aaabb95b14cfd1e3ea185349.tar.gz
1069 - rename record/field to container/element
This seems more obvious to laypeople.

I've also come up with a design for sum types: I'm going to call them
exclusive containers. You call 'get' on containers, 'index' on arrays,
and 'maybe-convert' on exclusive containers (as well as tagged types,
but that's even later).
Diffstat (limited to 'cpp/020array')
-rw-r--r--cpp/020array2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/020array b/cpp/020array
index 4a84af10..9c2f1439 100644
--- a/cpp/020array
+++ b/cpp/020array
@@ -117,7 +117,7 @@ recipe main [
 +mem: storing 2 in location 5
 
 :(before "End Globals")
-// To write to fields of records, you need their address.
+// To write to elements of containers, you need their address.
 const int INDEX_ADDRESS = 21;
 :(before "End Primitive Recipe Numbers")
 Recipe_number["index-address"] = INDEX_ADDRESS;