Actions
Feature #15896
closedSymbol#+
Feature #15896:
Symbol#+
Status:
Rejected
Assignee:
-
Target version:
-
Description
I've made this today
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.
Actions