Data.IntMap.Strict.findWithDefault is too strict

Daniel Peebles pumpkingod at gmail.com
Fri Dec 14 04:11:57 CET 2012


Even a strict language like scala uses call-by-name arguments for the
counterpart to this function in its collections library. It seems to be
overstepping the mandate of being a "strict map library" to try to pretend
that Haskell is a strict language.


On Thu, Dec 13, 2012 at 11:48 AM, Johan Tibell <johan.tibell at gmail.com>wrote:

> On Thu, Dec 13, 2012 at 8:13 AM, Andreas Abel <andreas.abel at ifi.lmu.de>
> wrote:
> > Key and value arguments are evaluated to WHNF
>
> For consistency. The API is modeled as if we had call-by-value.
>
> _______________________________________________
> Libraries mailing list
> Libraries at haskell.org
> http://www.haskell.org/mailman/listinfo/libraries
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/libraries/attachments/20121213/9797a984/attachment.htm>


More information about the Libraries mailing list