Updating a record in Elm
<p><strong>NOTE: This is my first time ever looking at Elm and I just learned about its existence last week by accident.</strong></p>

<p>When you update a record, are you really updating a record or just creating a new one. </p>

<pre><code>&gt; { bill | name = "Nye" }
{ age = 57, name = "Nye" }

&gt; { bill | age = 22 }
{ age = 22, name = "Gates" }
</code></pre>

<p>I would expect:</p>

<pre><code>&gt; { age = 22, name = "Nye" }
</code></pre>

<p>Since there were two updates done on 'bill'.</p>

<p>Reading from the <a href="http://elm-lang.org/guide/core-language#records" rel="nofollow">Elm language site</a>, I know there aren't destructive updates. A new object (with the same name?) is created and shares the fields that weren't changed of the old(er) object. But from these examples, it doesn't seem like 'bill' is being updated at all. It looks more like 'bill' is being copied, that copy is being updated, and a new record called 'anonymous Will' is being created. A completely new record.</p>

<p>So what am I misunderstanding here?</p>