about summary refs log tree commit diff stats
path: root/html/070table.mu.html
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-11-25 11:33:13 -0800
committerKartik K. Agaram <vc@akkartik.com>2016-11-25 11:33:13 -0800
commit8bd3f99fc3e448f3ec5e396a8775454eb111d5c6 (patch)
tree2709a748d9c4f67bc5bede7798ef4488f8e98d23 /html/070table.mu.html
parentccae45851f729ada29391e7497cf8e4c9796ff8c (diff)
downloadmu-8bd3f99fc3e448f3ec5e396a8775454eb111d5c6.tar.gz
3688
Move my todos over the past couple of years into the codebase now that
it might be going dormant.

Surprising how few todos left undone!
Diffstat (limited to 'html/070table.mu.html')
-rw-r--r--html/070table.mu.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/html/070table.mu.html b/html/070table.mu.html
index 9cc6e3e1..6d9b3e0c 100644
--- a/html/070table.mu.html
+++ b/html/070table.mu.html
@@ -35,6 +35,8 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color
 <span class="Comment"># A table is like an array, except that you can index it with arbitrary types</span>
 <span class="Comment"># and not just non-negative whole numbers.</span>
 
+<span class="Comment"># incomplete; doesn't handle hash conflicts</span>
+
 <span class="muScenario">scenario</span> table-read-write [
   <span class="Constant">local-scope</span>
   tab:&amp;:table:num:num <span class="Special">&lt;-</span> new-table<span class="Constant"> 30</span>
@@ -93,6 +95,8 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color
   *result <span class="Special">&lt;-</span> merge <span class="Constant">0/length</span>, capacity, data
 ]
 
+<span class="Comment"># todo: tag results as /required so that call-sites are forbidden from ignoring them</span>
+<span class="Comment"># then we could handle conflicts simply by resizing the table</span>
 <span class="muRecipe">def</span> put-index table:&amp;:table:_key:_value, key:_key, value:_value<span class="muRecipe"> -&gt; </span>table:&amp;:table:_key:_value [
   <span class="Constant">local-scope</span>
   <span class="Constant">load-ingredients</span>