Modular Explicits in OCaml [modular-explicits]

Abstraction, in OCaml, often refers to hiding a particular type's implementation using a signature. For example:

module S : sig
  type t
  val add : t -> t -> t
end = struct
  type t = int
  let add = Int.add
end

In this post, however, I use abstraction to refer to the notion of code-reuse. Using features of the OCaml language to allow one piece of code to be used across different implementations or instantiations of a particular kind of value.

The goal of this post is to eventually discuss OCaml 5.5's modular explicits which is yet another feature that can allow a single piece of code to be used in various situations.

Context

Patrick's OCaml Blog [ocaml-blog]

Posts [posts]

Backlinks

Ppxlib Releases › 0.38.0 [ppxlib-release-0-38-0]

Related

Modular Explicits [abs-modular-explicits]