3 ms·
They could do something like OCaml modules and signatures but more permissive. Module author writes the public signature and that's what the type checker runs a
by int_19h 1y ago
They could do something like OCaml modules and signatures but more permissive. Module author writes the public signature and that's what the type checker runs against, but if you want, you can "downcast" the module to the actual signature, revealing implementation details.