[Haskell-cafe] zip3, zip4 ... -> zipn?

Stefan O'Rear stefanor at cox.net
Sat Aug 11 15:24:05 EDT 2007

On Sat, Aug 11, 2007 at 05:27:19PM +0800, Hugh Perkins wrote:
> I was looking for something like this too.
> Note that Erlang can do this ;-)  but Erlang is probably not so
> strongly typed, so it's easier to do?

I think the main issue is that Erlang doesn't use currying (IIRC).
Currying makes it MUCH harder to implement varargs functions.  (We
thought this was a good tradeoff - partial applications give Haskell
much more power than varargs would have.)

(Unfortunately I don't know of any good languages with powerful type
systems and vararg functions that can take advantage of powerful
types...  I'd love to give example code here :))

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20070811/71fa2fb6/attachment.bin

More information about the Haskell-Cafe mailing list