avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@apache.org>
Subject Re: Reasoning for type of map keys to be restricted to strings.
Date Tue, 27 May 2014 17:40:20 GMT
On Mon, May 26, 2014 at 7:07 AM, Michael Pershyn
<michael.pershyn@gmail.com> wrote:
> it is possible to use at least int and float there as a map key:
> * ruby
> * php
> * pythons
> * js
> * perl

The history is that I probably checked just perl and python and felt
that string, int and float was a rather arbitrary set of types that
may or may not be consistently supported in more languages and that
strings would handle the vast majority of cases where folks wanted to
use maps.  No one disputed this at the time and the change was made.

If you have a proposal that is back-compatible with existing
implementations (i.e., creates data that they can all process) and are
willing to implement this proposal in one or more languages then it
might have a good chance of being accepted by the community.

Thanks,

Doug

Mime
View raw message