
11 Aug
2007
11 Aug
'07
3:24 p.m.
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 :)) Stefan