Data.IntMap.Strict.findWithDefault is too strict
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>
> > 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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libraries