Actions
Feature #8765
closedLiteral for symbol with interpolation
Feature #8765:
Literal for symbol with interpolation
Status:
Feedback
Assignee:
-
Target version:
-
Description
=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
Actions