<div dir="ltr">On Tue, Sep 20, 2011 at 17:56, Evan Laforge <span dir="ltr">&lt;<a href="mailto:qdunkan@gmail.com">qdunkan@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">&gt; I actually think the brokenness of Ord for floating point values is<br>
&gt; worse in many ways, as demonstrated by the ability to insert a value<br>
&gt; into a Data.Set.Set and have other values &quot;disappear&quot; from the set as<br><br>
</div>Whoah, that&#39;s scary.  What are some examples of this happening?  Does<br>
this mean it&#39;s unsafe to store Doubles in a Map?</blockquote><div><br></div><div>It&#39;s unsafe to use them as a key ((Set a) being effectively (Map a ())), but that should be pretty obvious anyway given that (==) isn&#39;t reliable for Double.</div>
</div><div><br></div>-- <br>brandon s allbery                                      <a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a><br>wandering unix systems administrator (available)     (412) 475-9364 vm/sms<br>
<br>
</div>