[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Libguestfs] [PATCH v12 3/3] New tool: virt-builder-repository



> > +               Index.file_uri = file_uri }) ->
> 
> You can write:
> 
>    fun (id, { Index.arch; Index.file_uri }) ->

.. or even better:

  fun (id, { Index.arch; file_uri }) ->

as OCaml (since 4.01) knows that all the labels in a struct must come
from the same module, so you only need to name the module once.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-builder quickly builds VMs from scratch
http://libguestfs.org/virt-builder.1.html


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]