From: merch-redmine@... Date: 2019-07-09T16:53:56+00:00 Subject: [ruby-core:93644] [Ruby master Bug#10463] :~@ and :!@ are not parsed correctly Issue #10463 has been updated by jeremyevans0 (Jeremy Evans). nobu (Nobuyoshi Nakada) wrote: > jeremyevans0 (Jeremy Evans) wrote: > > nobu (Nobuyoshi Nakada) wrote: > > > If `:!@` and `:!` are different things, also `!foo` and `foo.!` are different things. > > > > I don't believe that is true. With the above patch: > > Sorry, forgot `@`, I wanted to mean `!foo` and `foo.!@`. Well, `foo.!@` would be a syntax error with the patch. Is there a reason other than backwards compatibility to keep this automatic aliasing of `!@` to `!` and `~@` to `~`? If not, maybe we could deprecate this in 2.7 and remove it in Ruby 3 (if matz approves). ---------------------------------------- Bug #10463: :~@ and :!@ are not parsed correctly https://bugs.ruby-lang.org/issues/10463#change-79252 * Author: sawa (Tsuyoshi Sawada) * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: 2.1.4 * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN ---------------------------------------- The at mark in literal symbols `:~@` and `:!@` are ignored. ~~~ruby :~@ # => :~ :!@ # => :! ~~~ -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>