Should Riak use paramterised modules?

Kevin Smith ksmith at
Thu Feb 18 14:48:14 EST 2010

Zubair -

Thanks for pointing this out. I'd like to mention that parameterized modules have been in the language for several major releases and other projects aside from Riak, such as mochiweb, also depend on parameterized modules. Removing them at this stage would break a other Erlang projects so I think we're safe.
However, Riak is also an open source project and we welcome patches from the community. If you'd like to submit a patch removing parameterized module support we'd be happy to review it.

On Feb 18, 2010, at 2:36 PM, Zubair Quraishi wrote:

> I have been looking around the source code for Riak and I have noticed that Riak uses parameterized modules:
> -module(riak_client, [Node,ClientId]).
> : to enable for example the following in the client API:
> {ok, RiakClient} = riak:client_connect('riak at').
> RiakClient:list_buckets().
> However, I have also heard that paramterized modules are only an experimental feature of Erlang and are not only unsupported, but may be removed in the future. If this were to happen it would break all the Riak Erlang client libraries.
> Is this something that should be changed in Riak as soon as possible, or am I mistaken on this?
> Thanks
> Zubair
> _______________________________________________
> riak-users mailing list
> riak-users at

More information about the riak-users mailing list