OCaml -safe-string string literal sharing across separate modules
OCaml -safe-string string literal sharing across separate modules With -safe-string enabled by default since OCaml 4.06, strings are immutable and mutation lives in Bytes. The compiler may physically share identical literals inside a single compilation unit, but the language definition does not state whether the same literal in different modules maps to one