From: richard.schneeman@... Date: 2014-11-25T23:16:14+00:00 Subject: [ruby-core:66464] [ruby-trunk - misc #10541] Remove shorthand string interpolation syntax Issue #10541 has been updated by Richard Schneeman. This syntax is very confusing and while not common could possibly lead to confusing bugs. That blog post referenced an actual bug in production. If I came across this code in the wild, I would be surprised by this behavior: ~~~ require 'cgi' @ss = "susan sarandon" # ... password = CGI.escape("wordP#@ss") username = CGI.escape("bar") puts "https://#{username}:#{password}@example.com" # => "https://bar:wordPsusan+sarandon@example.com" ~~~ Eric, I agree we cannot remove the operator, we would have to deprecate before removing. ---------------------------------------- misc #10541: Remove shorthand string interpolation syntax https://bugs.ruby-lang.org/issues/10541#change-50084 * Author: Daniel Morrison * Status: Open * Priority: Normal * Assignee: Yukihiro Matsumoto * Category: syntax * Target version: current: 2.2.0 ---------------------------------------- I would like to see the shorthand string interpolation syntax, "foo#@bar" deprecated and then removed in 3.0. My reasons: 1. Most experienced Ruby developers I've talked to don't even know it exists. 2. It has been the cause of real problems. http://status.cloudamqp.com/incidents/vj62pnp62tj9 When a syntax is not widely known and has the potential for problems, I think it makes sense to deprecate and remove. -- https://bugs.ruby-lang.org/