From: knu@... Date: 2014-05-09T02:05:01+00:00 Subject: [ruby-core:62471] [ruby-trunk - Feature #6074] Allow alias arguments to have a comma Issue #6074 has been updated by Akinori MUSHA. I believe the lack of comma is an important sign that alias is not really a method call in which directive arguments are not evaluated like with normal method calls. If you are allowed to, and should you put a comma in an alias statement, it would look like a method call and confuse you in that you might think it could be passed any expressions. Here is an example: class Foo name = :to_str method = :to_s alias name, method # Likely a mistake, but won't err because `method` happens to exist. end I think we should instead deprecate the `alias :sym1 :sym2` form so that it is clear that alias takes bare identifiers, not expressions. ---------------------------------------- Feature #6074: Allow alias arguments to have a comma https://bugs.ruby-lang.org/issues/6074#change-46627 * Author: Thomas Sawyer * Status: Assigned * Priority: Low * Assignee: Yukihiro Matsumoto * Category: core * Target version: next minor ---------------------------------------- This is one my biggest pet peeves with Ruby. I am always typing: ~~~ruby alias :foo, :bar ~~~ And getting a damn syntax error. Btw, is there a reason why `alias` is a keyword and not a method? -- https://bugs.ruby-lang.org/