On Fri, Jul 15, 2022 at 09:12:24AM +0200, Laszlo Ersek wrote:
+let do_action action = + try + match action with + | Unlink file -> Unix.unlink file + | Rm_rf dir -> + let cmd = sprintf "rm -rf %s" (Filename.quote dir) in ...
(2) Shouldn't we use two spaces for indentation here, relative to "R"?
Possibly, but this is what emacs tuareg-mode gives me. I guess we need to get more serious about OCaml formatting at some point which may require fixing tuareg-mode too since it's quite erratic sometimes. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com nbdkit - Flexible, fast NBD server with plugins https://gitlab.com/nbdkit/nbdkit