From: nobu@... Date: 2016-12-17T02:19:31+00:00 Subject: [ruby-core:78697] [Ruby trunk Feature#13045] Passing a Hash with String keys as keyword arguments Issue #13045 has been updated by Nobuyoshi Nakada. Description updated I'm not a fun for this idea, since `Symbol` and `String` are different. ---------------------------------------- Feature #13045: Passing a Hash with String keys as keyword arguments https://bugs.ruby-lang.org/issues/13045#change-62073 * Author: Anatoly Chernow * Status: Open * Priority: Normal * Assignee: * Target version: ---------------------------------------- To the following method ~~~ ruby def new request:, response: end ~~~ I'd like to be able to pass both ~~~ ruby hash_with_symbol_keys = { request: another_hash, response: another_hash2 } hash_with_string_keys = { 'request' => another_hash, 'response' => another_hash2 } ~~~ I would make a lot cleaner parsing many things returned with string keys(like the output of `YAML.load`). If you don't like the above feature, could you please at least consider adding `Hash#symbolize_keys`(like you did with `Hash#transform_values`)? -- https://bugs.ruby-lang.org/ Unsubscribe: