[#68478] Looking for MRI projects for Ruby Google Summer of Code 2015 — Tony Arcieri <bascule@...>

Hi ruby-core,

10 messages 2015/03/10

[ruby-core:68414] Re: [Ruby trunk - Feature #10930] Allow splat operator to work for string interpolation

From: Matthew Kerwin <matthew@...>
Date: 2015-03-04 20:57:04 UTC
List: ruby-core #68414
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
窶黍 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.

-- 
  Matthew Kerwin
  http://matthew.kerwin.net.au/

In This Thread

Prev Next