What do you assume when you see fromListN in a library?

Joseph C. Sible josephcsible at gmail.com
Thu May 14 22:38:42 UTC 2020


On Thu, May 14, 2020 at 10:41 AM Carter Schonwald
<carter.schonwald at gmail.com> wrote:
> My inclination is we change the semantics of fromListN to be strictly validating with an error when the length is wrong. This is the most consistent and humane of options.

I disagree that validating would be consistent. Look how common the
phrases "the precondition is not checked" and "violation of this
condition is not detected" are in the containers library and so many
others on Hackage.

Joseph C. Sible


More information about the Libraries mailing list