Is is possible to print value\'s name in OCaml, for example if I have
type my_type = | MyType_First of int | MyType_Second of string
and th
What you want is a simpler form of generic print and is not available in OCaml as such, but some workarounds exist - e.g. deriving.