<br><div class="gmail_quote">On Fri, Apr 24, 2009 at 15:26, Bulat Ziganshin <span dir="ltr">&lt;<a href="mailto:bulat.ziganshin@gmail.com">bulat.ziganshin@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello Chris,<br>
<div class="im"><br>
Friday, April 24, 2009, 5:21:20 PM, you wrote:<br>
<br>
&gt; No, but the functions you mentioned do fail immediately. If I use a<br>
&gt; head on an empty list I get an error immediately. If I use fromAscList<br>
&gt; incorrectly I get an error only when I try to lookup elements. This<br>
&gt; makes it hard to debug if you didn&#39;t make this error before. I don&#39;t<br>
&gt; mind a runtime error in this case, but I very much want to know where<br>
&gt; my bug is.<br>
<br>
</div>how about providing such check only in *debugging* version of library?<br>
<div class="im"></div></blockquote><div><br>I think the decision whether to include specific check should be left up to the developer. Perhaps I would like to retain only a subset of checks, while debugging version restricts my freedom and I would end up writing my own version. Giving functions with and without checks is a good way of giving such freedom.<br>
<br>Regards<br><br>Christopher SkrzÄ™tnicki<br></div></div><br>