From: "duerst (Martin Dürst)" Date: 2013-08-11T01:00:36+09:00 Subject: [ruby-core:56516] [ruby-trunk - Feature #8765][Feedback] Literal for symbol with interpolation Issue #8765 has been updated by duerst (Martin D��rst). Status changed from Open to Feedback Do you need this in an actual program? There is %q and %Q because there is '' and "", and that's because interpolation in Strings is very frequent. Interpolation for Symbols is very rare, as far as I know. ---------------------------------------- Feature #8765: Literal for symbol with interpolation https://bugs.ruby-lang.org/issues/8765#change-41069 Author: sawa (Tsuyoshi Sawada) Status: Feedback Priority: Normal Assignee: Category: Target version: =begin I propose a symbol literal `%S` with interpolation foo = 3 %s{#{foo}} # => :"\#{foo}" %S{#{foo}} # => :"3" The conventional `:""` literal looks as if it is a unary operator to a string. Since there are both `%q` and `%Q` literals for string, I don't see any reason why symbols only have `%s`. =end -- http://bugs.ruby-lang.org/