On Fri, Apr 11, 2008 at 11:24 AM, Jon Harrop wrote: > > Is it possible to deconstruct an optional argument as you can with a labeled > argument: > > let f ~p:(x,y) () = x - y > > with something like: > > let f ?(p=0,0):(x,y) () = x - y sure, cf. the grammar in the refman http://caml.inria.fr/pub/docs/manual-ocaml/expr.html parameter ::= ... ĻO ? label-name : ( pattern [: typexpr] [= expr] ) let f ?p:(x,y=0,0) () = x - y -- Olivier