If you have the same representation for types in both modules, you can share a common type in the implementation, but hide it in the interface. Conversion becomes free then.
Ulugbek
3
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Narrow down a module type with types dependent on each other | 3 | 335 | March 15, 2024 | |
| Access inferred types | 4 | 527 | January 8, 2024 | |
| A question on type/module equality | 12 | 2944 | November 8, 2017 | |
| Polymorphic type conversion | 7 | 1141 | September 17, 2022 | |
| Saving a module in a reference | 22 | 757 | October 6, 2024 |
