[erlang-questions] Parameterized module initialization

Tim Watson watson.timothy@REDACTED
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
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions



More information about the erlang-questions mailing list