Should Riak use paramterised modules?

Zubair Quraishi zubairq at gmail.com
Thu Feb 18 14:57:12 EST 2010


What happens if Erlang removes parameterized modules though, this will break
Riak too? Although I haven't ask anyone at Erricson if this is possible as I
don't know them so well. Do any of you guys know who to ask?

On Thu, Feb 18, 2010 at 8:48 PM, Kevin Smith <ksmith at basho.com> wrote:

> 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.
>
> Thanks,
> Kevin
> 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 192.168.1.4').
> >
> > 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 lists.basho.com
> > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20100218/c88ebabc/attachment.html>


More information about the riak-users mailing list