From db5c9550e972d114aaabb95b14cfd1e3ea185349 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 16 Apr 2015 10:35:49 -0700 Subject: 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). --- cpp/020array | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp/020array') 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; -- cgit 1.4.1-2-gfad0