News for hackers. Stuff that matters.
Re:Types as Interfaces by octachron on Tuesday July 23, 2024 @07:48AM (#41044982)
Ocaml object system can also achieve this in a quite lightweight way

    type foo = < foo:int >
    type bar = < bar:int >
    type k = < foo; bar >
    type u = < k; baz:int >
    let f (x: <u; ..>) (\* the type annotation is not needed \*) = x#m

There are no comments on this comment yet.