[racket] question about foldl implementation

From: Will M. Farr (wmfarr at gmail.com)
Date: Fri Aug 13 08:16:19 EDT 2010

On Aug 13, 2010, at 4:42 AM, Noel Welsh wrote:

> In Haskell left fold is seen as a different function to right fold,
> and hence has a different interface. Haskell values confusing code so
> Haskell programmers appreciate having different interfaces for very
> similar functions (and the type system will catch some errors).

In seriousness, in Haskell the functions are really different regarding how strict they are, so it maybe makes more sense for them to have different interfaces.  (Though, of course, in Racket, they differ in space usage, as Noel pointed out, so the same  logic could apply.)


Posted on the users mailing list.