From: Matthew Kerwin Date: 2013-09-02T12:56:21+10:00 Subject: [ruby-core:56957] Re: [ruby-trunk - Feature #7292] Enumerable#to_h --089e0160b82899ba2f04e55db79f Content-Type: text/plain; charset=ISO-8859-1 On Sep 2, 2013 11:02 AM, "matz (Yukihiro Matsumoto)" wrote: > > Acceptable. How others think about Marc's rule? > > * elements should respond to #to_ary > * return value from #to_ary should be 2 elements array > * otherwise the element will be ignored (no TypeError exception) +1, this proposal is as good as any I've seen. --089e0160b82899ba2f04e55db79f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Sep 2, 2013 11:02 AM, "matz (Yukihiro Matsumoto)" <matz@ruby-lang.org> wrote:
>
> Acceptable. =A0How others think about Marc's rule?
>
> =A0* elements should respond to #to_ary
> =A0* return value from #to_ary should be 2 elements array
> =A0* otherwise the element will be ignored (no TypeError exception)

+1, this proposal is as good as any I've seen.

--089e0160b82899ba2f04e55db79f--