Browse thread
RE: [Caml-list] variant with tuple arg in pattern match?
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Bruce Hoult <bruce@h...> |
| Subject: | RE: [Caml-list] variant with tuple arg in pattern match? |
> > 1. Multiple arguments. Fine for the calculus, but in any language with >> tuples or records we can just write f(x,y), like everybody else. > >This is as much of a hack as currying. Why to pack arguments in a tuple >when you could simply use currying? Multiple return values. Unless you want to make continuations explicit (and that doesn't seem to be what Caml folk want), arguments in a tuple merely mirror results in a tuple. Curried continuations ... yummm. -- Bruce ------------------- To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr