Make comment in identifier=? more comprehensive.
authorChris Hanson <org/chris-hanson/cph>
Wed, 7 Feb 2018 04:22:16 +0000 (20:22 -0800)
committerChris Hanson <org/chris-hanson/cph>
Wed, 7 Feb 2018 04:22:16 +0000 (20:22 -0800)
src/runtime/syntax.scm

index b393ddd66cbb8c2cd3855258233b647574095a5f..b73d294a5bbd4c4e6c9d5ae0f2572f5d1aeb22ff 100644 (file)
@@ -142,8 +142,10 @@ USA.
     (or (eq? item-1 item-2)
        ;; This is necessary because an identifier that is not explicitly bound
        ;; by an environment is mapped to a variable item, and the variable
-       ;; items are not hash-consed.  Therefore two references to the same
-       ;; variable result in two different variable items.
+       ;; items are not memoized by the runtime syntactic environments.  Fixing
+       ;; this would require doing that memoizing, and also ensuring that
+       ;; runtime-environment->syntactic memoized its result as well.  Avoiding
+       ;; that complexity requires this small tweak.
        (and (var-item? item-1)
             (var-item? item-2)
             (eq? (var-item-id item-1)