[#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:61744] [CommonRuby - Feature #9686] Syntax for symbols used in hashes

From: jeremy@...
Date: 2014-03-28 20:22:55 UTC
List: ruby-core #61744
Issue #9686 has been updated by Jeremy Kemper.


See #4276

----------------------------------------
Feature #9686: Syntax for symbols used in hashes
https://bugs.ruby-lang.org/issues/9686#change-45983

* Author: Sascha Mayr
* Status: Open
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
----------------------------------------
Symbols are often used literally as keys in hashes like this:

`{foo: 'bar'}`

But acutally there is a little inconvenience when using the alternative :"name" literal syntax:

`string = 'foo'
{:"#{string}" => 'bar'}`

It would be great if Ruby provided the possibility to write the second example like this:

`string = 'foo'
{"#{string}": 'bar'}`

This would be logical, because you can write both syntaxes the same way when not using them in hashes.



-- 
https://bugs.ruby-lang.org/

In This Thread

Prev Next