[M3devel] small array in modula-3?

Henning Thielemann lemming at henning-thielemann.de
Fri Nov 16 09:42:26 CET 2007


On Fri, 16 Nov 2007, Jay wrote:

> Modules seem overly heavyweight.
> I don't want Module1.T, Module2.T, I want T1, T2.

This way generic modules would not work. They require that the parameter
modules have exactly the same interface. 'T' everywhere looked strange to
me at first, but I get used to it and now I also use that naming in other
languages (namely Haskell). Btw. Haskell has a restricted kind of operator
overloading by so called type classes. Although sometimes useful, people
tend to overuse it.



More information about the M3devel mailing list