2 ms·
I would accomplish this in modules in the following way. I use reasonML syntax but it's OCaml under the hood module Parent { let first = () => (); le
by Hermitian909 7y ago
I would accomplish this in modules in the following way. I use reasonML syntax but it's OCaml under the hood
module Parent {
let first = () => ();
let second = () => ();
let third = () => ();
};
module Child {
include Parent; //add parent funcs to namespace
//@Override
let third = () => ();
};
I make regular use of this pattern production.