[erlang-questions] OTP-9649 and further changes

Yurii Rashkovskii yrashk@REDACTED
Tue Jan 10 17:28:46 CET 2012


> I believe you mean parametrized modules, since they are basically a
> tuples in runtime, where first element is module name. Those are two
> different concepts.

Well, this is a "hack" used to enable parametrized modules. I,
however, use it outside of parametrized modules (just make functions
accept the value tagged with the module name as the last argument).
This is why I prefer calling them tuple modules so that I don't run
into anti-parametrized modules crowd when it is uncalled for (the
general consensus on IRC is that as long as your module is not
parametrized but explicit, you're fine).

> In general I think that parametrized modules are here to stay, since
> so many projects are using it, including OTP code itself (mnesia).
> Although it would be nice if they are actually moved into "official"
> part of language.

Exactly. That's why I would love to hear from the OTP team.


More information about the erlang-questions mailing list