From: andrew@... Date: 2015-10-08T17:44:20+00:00 Subject: [ruby-core:71021] [Ruby trunk - Misc #10541] Remove shorthand string interpolation syntax Issue #10541 has been updated by Andrew Vit. This shorthand only works for variables with sigils (instance, class, global), not local variables. Was it decided that `@x="b"; "a#@x"` is not ambiguous, but `x="b"; "a#x"` is not? Maybe there is an argument for consistency here too. ---------------------------------------- Misc #10541: Remove shorthand string interpolation syntax https://bugs.ruby-lang.org/issues/10541#change-54396 * Author: Daniel Morrison * Status: Open * Priority: Normal * Assignee: Yukihiro Matsumoto ---------------------------------------- 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/