You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apparently the package stanza does not result in private libraries being actually private.
This is because the name is not mangled to become unique and tied to the project, and so will name clash with other libraries with the same name in the global context.
But it looks like this behaviour is on its way: ocaml/dune#3864
To patch this for now; I'll mangle the name Util manually to Typeset_util.
I'll leave this issue open until the dune issue is resolved; then I'll de-mangle Typeset_util back to Util.
The reason for me insisting on the separation; Having the helper sources and library sources separate in a project structure, makes the project easier to maintain; since it is easier to understand when there is a practical separation of concerns.
Also to avoid code duplication; in this project both lib, test and example depend on util.
The text was updated successfully, but these errors were encountered:
Apparently the package stanza does not result in private libraries being actually private.
This is because the name is not mangled to become unique and tied to the project, and so will name clash with other libraries with the same name in the global context.
But it looks like this behaviour is on its way:
ocaml/dune#3864
To patch this for now; I'll mangle the name Util manually to Typeset_util.
I'll leave this issue open until the dune issue is resolved; then I'll de-mangle Typeset_util back to Util.
The reason for me insisting on the separation; Having the helper sources and library sources separate in a project structure, makes the project easier to maintain; since it is easier to understand when there is a practical separation of concerns.
Also to avoid code duplication; in this project both lib, test and example depend on util.
The text was updated successfully, but these errors were encountered: