note
jcb
<p>I am considering "literals" as more like constants embedded in the program, using a constant pool, where changing a value would have bizarre effects, like changing the value of "123456" everywhere in the program. Literal strings in C programs are often combined in this way.</p>
<p>The <c>{}</c> and <c>[]</c> operators are defined to produce <i>distinct</i> mutable aggregates every time they are evaluated. In this sense, they are not literals.</p>
<p>I am unsure how this behavior of replacing the reference itself is actually <i>useful</i>, but nor do I see any harm here.</p>
11120285
11120305