3 ms·
No, a class is a data type coupled to functions operating on that class. For the purpose of this discussion a module is a way to semantically group types and fu
by Ankintol 6y ago
No, a class is a data type coupled to functions operating on that class. For the purpose of this discussion a module is a way to semantically group types and functions without coupling them (languages like OCaml get fancy by actually typing modules which enables some neat ideas, but is not important to this discussion).