<div dir="ltr">Wow, I just posted to reddit asking about the same thing. Should have checked my email first. :)<div><br></div><div><a href="http://www.reddit.com/r/haskell/comments/37km7e/fdeferscopeerrors_anyone/">http://www.reddit.com/r/haskell/comments/37km7e/fdeferscopeerrors_anyone/</a><br></div><div><br></div><div>Obviously, I concur that this would make Haskell more pleasant for me. I just used -fdefer-type-errors today, which turned out to be a huge convenience, and I would have similarly benefited from -fdefer-name-errors.</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature">-- Dan Burton</div></div>
<br><div class="gmail_quote">On Thu, May 28, 2015 at 1:26 AM, Tom Ellis <span dir="ltr"><<a href="mailto:tom-lists-haskell-cafe-2013@jaguarpaw.co.uk" target="_blank">tom-lists-haskell-cafe-2013@jaguarpaw.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Deferring type errors until runtime is a feature which probably helps a lot<br>
with the adoption of Haskell.  Newcomers can get the encouragement of a<br>
mostly-working program even if there are type errors in a few places.<br>
I can write<br>
<br>
    foo = 1 + 1<br>
    bar = head True<br>
    main = print foo<br>
<br>
and still run the program or load it in GHCi.<br>
<br>
Does anyone think it would also be beneficial to have "-fdefer-name-errors"?<br>
If I write<br>
<br>
    foo = 1 + 1<br>
    bar = baz<br>
    main = print foo<br>
<br>
but baz doesn't exist it would still be nice to let the program run or be<br>
loaded in GHCi.  This could be achieved by replacing all missing variables<br>
by "error 'baz was not defined'" or similar.<br>
<br>
If a suitable parser could be written it might even be possible to defer<br>
syntax errors!<br>
<br>
This kind of thing would make the experience with Haskell gentler for<br>
newcomers, but also more pleasant for veterans!<br>
<br>
Tom<br>
<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
</blockquote></div><br></div>