<div dir="auto">Yup! Just wanted to make sure it didn't end up being the latter.</div><br><div class="gmail_quote"><div dir="ltr">On Thu, Aug 30, 2018, 10:19 PM Eric Mertens <<a href="mailto:emertens@gmail.com">emertens@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space">I think this comes down to just documenting things like how strict functions are and how they behave on various classes of inputs. These are good things to document. It doesn’t just have to be about a boolean flag “partial” paste on a bunch of definitions.<br><div><br><blockquote type="cite"><div>On Aug 30, 2018, at 7:16 PM, Daniel Díaz Casanueva <<a href="mailto:dhelta.diaz@gmail.com" target="_blank" rel="noreferrer">dhelta.diaz@gmail.com</a>> wrote:</div><br class="m_136524067737497845Apple-interchange-newline"><div><div dir="ltr">Why not? I don't think mentioning that length doesn't work with infinite lists will do any harm.<div><br></div><div>I think many people make a distinction between partiality due to endless evaluation and partiality due to a call to "error". But I still think documenting either of both things can be helpful.</div><div><br></div><div>Best,</div><div>Daniel</div></div><br><div class="gmail_quote"><div dir="ltr">Am Fr., 31. Aug. 2018 um 04:09 Uhr schrieb David Feuer <<a href="mailto:david.feuer@gmail.com" target="_blank" rel="noreferrer">david.feuer@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">Yes, I think so. What about functions like length? length (repeat ()) is bottom. repeat () is not bottom. Ergo, length is partial. But I don't think we want to say that!</div><br><div class="gmail_quote"><div dir="ltr">On Thu, Aug 30, 2018, 10:05 PM Daniel Díaz Casanueva <<a href="mailto:dhelta.diaz@gmail.com" target="_blank" rel="noreferrer">dhelta.diaz@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">+1 from me too. The partiality of a function seems to me like something that should be documented.<br><div><br></div><div>Best,</div><div>Daniel</div></div><br><div class="gmail_quote"><div dir="ltr">Am Fr., 31. Aug. 2018 um 02:10 Uhr schrieb Richard Eisenberg <<a href="mailto:rae@cs.brynmawr.edu" rel="noreferrer noreferrer" target="_blank">rae@cs.brynmawr.edu</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Proposal: Mark partial functions in `base` as partial<br>
<br>
Motivation: I'm about to teach Haskell to a classful of beginners. In my experience, they will soon reach for functions like `head` and `tail`, because pattern-matching is foreign to them. I would love just to be able to say "Don't use partial functions", but many students will not easily be able to tell partial functions from total ones.<br>
<br>
I do expect this problem to work itself out rather quickly, and then students will be able to identify partial functions, but loudly marking partial functions as partial seems like a small service to everyone and a bigger one to newbies. I don't see any downsides.<br>
<br>
Thoughts?<br>
<br>
Thanks,<br>
Richard<br>
_______________________________________________<br>
Libraries mailing list<br>
<a href="mailto:Libraries@haskell.org" rel="noreferrer noreferrer" target="_blank">Libraries@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries" rel="noreferrer noreferrer noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries</a><br>
</blockquote></div>
_______________________________________________<br>
Libraries mailing list<br>
<a href="mailto:Libraries@haskell.org" rel="noreferrer noreferrer" target="_blank">Libraries@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries" rel="noreferrer noreferrer noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries</a><br>
</blockquote></div>
</blockquote></div>
_______________________________________________<br>Libraries mailing list<br><a href="mailto:Libraries@haskell.org" target="_blank" rel="noreferrer">Libraries@haskell.org</a><br><a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries" target="_blank" rel="noreferrer">http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries</a><br></div></blockquote></div><br></div></blockquote></div>