On Sun, Jan 08, 2017 at 11:13:42PM +0000, Richard W.M. Jones wrote:
let other_func ~foo ~bar ?baz =
func ~foo ~bar ?baz
Actually there is a third issue which is what makes this even
more confusing.
?baz (when calling a function) expects that baz (the binding) is an
option, and passes either nothing (if baz = None) or the optional
argument (if baz <> None). In effect it means pass baz directly to
the function, since the function implementation is expecting an option
type for this parameter.
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
Read my programming and virtualization blog:
http://rwmj.wordpress.com
virt-top is 'top' for virtual machines. Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top