|
|
|
|
|
by int_19h
570 days ago
|
|
Interestingly enough, OCaml has a great polymorphism story in its OO system. Because it is structurally typed with nearly automatic inference, you can in fact write completely generic code like `x#y(z)`, which magically "just works" for any x that has a method y that accepts z - all inferred and statically type-checked. |
|
aka let's mix two jars of jam and shit via this funnel and see what happens.