Issue #9686 has been updated by googlefeud (google feud).

Subject changed from Syntax for symbols used in hashes to google classroom

You can solve your issue by using [oogle classroom login](http://www-googleclassroom.com/)

----------------------------------------
Feature #9686: google classroom
https://bugs.ruby-lang.org/issues/9686#change-70268

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

~~~ruby
{foo: 'bar'}
~~~

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

~~~ruby
string = 'foo'
{:"#{string}" => 'bar'}
~~~

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

~~~ruby
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/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>