From dfd4dc9e74b24e19ddc7d8fa7c8a4b21a0e8526c Mon Sep 17 00:00:00 2001 From: Matthew Butterick Date: Thu, 24 Feb 2022 16:55:47 -0800 Subject: [PATCH] note to self --- quad/quad2/atomize.rkt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/quad/quad2/atomize.rkt b/quad/quad2/atomize.rkt index 984d011f..b5f9f4fe 100644 --- a/quad/quad2/atomize.rkt +++ b/quad/quad2/atomize.rkt @@ -1,2 +1,13 @@ #lang debug racket/base +#| + +My idea here is that instead of comparing attrs by using eq? with a hash, +we can use eq? (not equal?) on an association list +the idea being that if only update the attrs by consing onto the front, +then the process is strictly accretive, that is: +we are never allocating a fresh list to hold existing values +For instance, the top-level attrs represent a list object +that will eventually be the tail of the attrs in every atomized quad. +|# +