From: Matthew Kerwin Date: 2015-03-05T06:57:04+10:00 Subject: [ruby-core:68414] Re: [Ruby trunk - Feature #10930] Allow splat operator to work for string interpolation --001a1134ef268eae8a05107cb137 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 4 March 2015 at 14:01, <6ftdan@gmail.com> wrote: > Issue #10930 has been updated by Daniel P. Clark. > > > The behavior of the splat operator as used in methods is like removing [ = ] > from and array to use as parameters. > > So intuitively it would make sense that it would remove them for > interpolation from a string. > > S =E2=80=8Bo are you also requesting that "#{1, 2, 3}" be considered valid? = Because that's how I would interpret "#{*[1,2,3]}" if I saw it in code. I'm strongly opposed to it ever arbitrarily injecting commas, especially since Array#to_s joins without any delimiter. --=20 Matthew Kerwin http://matthew.kerwin.net.au/ --001a1134ef268eae8a05107cb137 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On 4 March 2015 at 14:01, <6ftdan@gmail.com> wrote:
=
Issue #10930 has been updated by Daniel P. Clark.


The behavior of the splat operator as used in methods is like removing [ ] = from and array to use as parameters.

So intuitively it would make sense that it would remove them for interp= olation from a string.


S
=E2=80=8Bo are you also requesting that = =C2=A0"#{1, 2, 3}" be considered valid? Because that's how I = would interpret =C2=A0"#{*[1,2,3]}" =C2=A0if I saw it in code.

I'm strongly opposed to it = ever arbitrarily injecting commas, especially since Array#to_s joins withou= t any delimiter.

--
=C2=A0 Matthew Kerwin
=C2=A0 http://matthew.kerwi= n.net.au/
--001a1134ef268eae8a05107cb137--