<div dir="ltr">On Sun, Mar 11, 2012 at 14:12, Henning Thielemann <span dir="ltr"><<a href="mailto:lemming@henning-thielemann.de">lemming@henning-thielemann.de</a>></span> wrote:<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">
On Fri, 24 Feb 2012, Conrad Parker wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
On 23 February 2012 20:18, John Lato <<a href="mailto:jwlato@gmail.com" target="_blank">jwlato@gmail.com</a>> wrote:</div><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
This irritates me too; I don't think that Haskell exceptions should be<br>
used for much of anything, exceptional condition or not.<br>
</blockquote>
<br>
+1 to the general concept of not using Haskell exceptions in library code.<br>
</div></blockquote>
<br>
This depends on what you call "exception". The exception handling part of the IO monad? The general concept of an exceptional situation? I think if you request the value of a variable, but that variable turns out to not exist, then the question was not valid and that is somehow an exceptional situation.</blockquote>
<div><br></div><div>Is looking up a missing key in a Map an exception? That is exactly this case ("variable" is really only an appropriate term from the standpoint of the shell, which [sometimes inappropriately] conflates the environment with its own variables). Or are you arguing that that also should be an exception?</div>
<div><br></div></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>