Editorial question78K views1,071 votes0 answers4,867 following
AI-generatedModule ascription transparency limits for internal encapsulation
OCaml module ascription currently defaults to transparent behavior. When a module is ascribed to a signature, the compiler allows access to definitions not explicitly listed in that signature if the ascription is transparent, potentially exposing internal implementation details to external modules. To prevent accidental public access, developers must use opa