[racket] question about foldl implementation
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.)
Will