From: zeusex81@... Date: 2019-06-03T16:47:09+00:00 Subject: [ruby-core:92939] [Ruby trunk Feature#15896] Symbol#+ Issue #15896 has been reported by zeus (Zeus 81). ---------------------------------------- Feature #15896: Symbol#+ https://bugs.ruby-lang.org/issues/15896 * Author: zeus (Zeus 81) * Status: Open * Priority: Normal * Assignee: * Target version: ---------------------------------------- I've made this today ``` ruby class Symbol @@cache_add = Hash.new {|h1,k1| h1[k1] = Hash.new {|h2,k2| h2[k2] = :"#{k1}#{k2}"}} def +(s) @@cache_add[self][s] end end :abc + :def # => :abcdef ``` I thought it was so awesome it should become standard. -- https://bugs.ruby-lang.org/ Unsubscribe: