<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Feb 23, 2017 at 9:05 PM, Harendra Kumar <span dir="ltr"><<a href="mailto:harendra.kumar@gmail.com" target="_blank">harendra.kumar@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Kids have this amazing ability to break any toy in minutes. I gave my seven year old daughter ghci to play with and in a little while she said it is broken:<div>







<p class="m_3749249878251812522gmail-p1"><span class="m_3749249878251812522gmail-s1">>> let 1 = 2</span></p>
<p class="m_3749249878251812522gmail-p1"><span class="m_3749249878251812522gmail-s1">>> 1</span></p>
<p class="m_3749249878251812522gmail-p1"><span class="m_3749249878251812522gmail-s1">1</span></p>
<p class="m_3749249878251812522gmail-p1"><span class="m_3749249878251812522gmail-s1">>> </span></p><p class="m_3749249878251812522gmail-p1"><span class="m_3749249878251812522gmail-s1">Earlier, I had explained to her about symbols and assigning values to symbols, and I said numbers are not symbols. But when she came up with this I could not explain what's going on. How can "1 = 2" be a valid equation? Am I missing something fundamental here, or it is just broken?</span></p></div></div></blockquote><div>It's a pattern match. The match fails, but as it produced no bindings it cannot be observed and its success or failure is irrelevant. <br></div></div><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>brandon s allbery kf8nh                               sine nomine associates</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>                                  <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div><div>unix, openafs, kerberos, infrastructure, xmonad        <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div></div></div>
</div></div>