Conversation

What's a module? I've read more than once that “language X doesn't have real modules”. Is there an academic definition? If not can you point me to the discussion? I remember I read somewhere that “only SML has real modules” 🤔
7
19
Harper and Peirce define a module informally as, “A collection of components, which may include procedure of function definitions, variable declarations, type definitions, an initialisation code – specifics will vary from one language to another.”
1
4
Replying to and
“only SML has real modules” – I think this is a pretty extreme and lazy position to take. SML has a pretty expressive module system but yeah, there's a wide diversity in different module systems, and different definitions.
1
5
Show replies