Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
RE: [Caml-list] variant with tuple arg in pattern match?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2001-04-10 (21:27)
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  Archives: