[#61424] [REJECT?] xmalloc/xfree: reduce atomic ops w/ thread-locals — Eric Wong <normalperson@...>

I'm unsure about this. I _hate_ the extra branches this adds;

13 messages 2014/03/12

[ruby-core:61746] Re: [CommonRuby - Feature #9686] Syntax for symbols used in hashes

From: Matthew Kerwin <matthew@...>
Date: 2014-03-28 22:58:03 UTC
List: ruby-core #61746
On Mar 29, 2014 8:52 AM, <nobu@ruby-lang.org> wrote:
>
> You can write simply for that case:
>
> ~~~ruby
> string = 'foo'
> {string => 'bar'}
> ~~~

You'd need

~~~ruby
{string.to_s => 'bar'}
~~~

In This Thread

Prev Next