← Back to team overview

marionnet-dev team mailing list archive

[Branch ~marionnet-drivers/ocamlbricks/trunk] Rev 503: Added the module Misc intended to collect frequently used functions but difficult to classify els...

 

------------------------------------------------------------
revno: 503
committer: Jean-Vincent Loddo <loddo@xxxxxxxxxxxxxxxxxxxx>
branch nick: ocamlbricks
timestamp: Mon 2020-04-13 00:14:53 +0200
message:
  Added the module Misc intended to collect frequently used functions but difficult to classify elsewhere. Added the function "try_finalize" in three versions differing in the treatment of the exception (raise again, None, Either.Left):
  Misc:   val try_finalize : finally:('a -> (exn, 'b) Either.t -> 'ignored) -> ('a -> 'b) -> 'a -> 'b 
  Option: val try_finalize : finally:('a -> (exn, 'b) Either.t -> 'ignored) -> ('a -> 'b) -> 'a -> 'b option
  Either: val try_finalize : finally:('a -> (exn, 'b) t -> 'ignored) -> ('a -> 'b) -> 'a -> (exn, 'b) t
added:
  BASE/misc.ml
  BASE/misc.mli
modified:
  STRUCTURES/either.ml
  STRUCTURES/either.mli
  STRUCTURES/option.ml
  STRUCTURES/option.mli


--
lp:ocamlbricks
https://code.launchpad.net/~marionnet-drivers/ocamlbricks/trunk

Your team marionnet-dev is subscribed to branch lp:ocamlbricks.
To unsubscribe from this branch go to https://code.launchpad.net/~marionnet-drivers/ocamlbricks/trunk/+edit-subscription