RFC: Should Data.IntMap.Strict be value-strict in the function arguments or the map itself

Johan Tibell johan.tibell at gmail.com
Thu Oct 27 19:51:12 CEST 2011


On Thu, Oct 27, 2011 at 10:35 AM, Milan Straka <fox at ucw.cz> wrote:

>  > I think option 2 is bad as it gives users no way to know which functions
> are
> > strict in their value argument without knowing the implementation or us
> > documenting every function with the strictness properties. We could do
> the
> > latter but the API would be simpler if we just said that all functions
> are
> > strict in their key and value arguments.
>
> This is even a problem of current API. Although most of the functions
> are strict in keys, it is not mentioned at any place in the
> documentation.
>

That's mostly an oversight. After we agreed a while back that the API should
be consistently key strict I intended to update the documentation, but never
got around to it.

-- Johan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/libraries/attachments/20111027/b1dbc64e/attachment.htm>


More information about the Libraries mailing list