2 ms·
Prerequisite is existing knowledge of ML syntax I guess. Cause I couldn't fully follow. And can someone tell me how its different to Java Interfaces or Classes
by didibus 9y ago
Prerequisite is existing knowledge of ML syntax I guess. Cause I couldn't fully follow.
And can someone tell me how its different to Java Interfaces or Classes?
- l_dopa 9y agoOne big difference is that java interfaces can't contain member types. They describe the methods of one particular type. Imagine you could define an interface for an entire java package. Another big one is that module types are structural: you don't have to declare all the module types implemented by a module when you define the module.