[erlang-questions] Parameterized module initialization
Wed Jun 27 17:01:30 CEST 2012
Yes, wouldn't existing stuff like xref and dialyzer and cover and so on, require less patching this way also?
On 27 Jun 2012, at 10:18, Anthony Ramine <n.oxyde@REDACTED> wrote:
> I find it way saner for a parameterized module to be a mapping from modules to modules than to be a way to encapsulate some arbitrary terms.
> I may be wrong but I think that it would be easier to implement and reason about them in a non leaky way if their arguments were only module names.
> Anthony Ramine
> Le 26 juin 2012 à 20:32, Richard Carlsson <carlsson.richard@REDACTED> a écrit :
>> Parameterized modules in Erlang already correspond to what ML/Caml calls "functors": an abstraction over modules. What you decide to parameterize over: terms or other modules (or possibly even types, though I'm not sure what would be needed to support that), is up to you.
> erlang-questions mailing list
More information about the erlang-questions