From: Rodrigo Rosenfeld Rosas Date: 2011-10-07T22:15:02+09:00 Subject: [ruby-core:40025] Re: 2.0 feature questionnaire - hash declaration syntax improvement I would also like to see the following improvements to hash declaration syntax: 1 - Allowing colon alignment: I'd like to be able to write code like this: my_hash = { any_key : 1, another_key : 2, } 2 - Allowing strings to be converted to symbols and even interpolated: interpolated = 'awesome' my_hash = {"some spaced key": 1, "#{interpolated}_key": 2} This would generate {:"some spaced key" => 1, :awesome_key => 2} Are these changes reasonable for Ruby 2.0? Em 01-10-2011 11:19, SASADA Koichi escreveu: > I made a questionnaire "What do you want to introduce in 2.0?" in my > RubyConf2011 presentation. > > Followings are results from my memo. My memo should be incomplete, so > please complement them. > > > - Cleanup syntax > - Bytecode export > - Symbol GC > - Remove Proc binding > - Macros > - Getting parse tree > - Getting source code > - Cross thread Fiber migration > - Standard Gem > - Review all standard libraries > - Remove obsolete one standard libraries > - Improve Proc#curry > - Non-blocking I/O > - Dtrace > - GC API (replacable GC) > >