Feature #7906

Giving meaning to ->foo

Added by Thomas Sawyer over 2 years ago. Updated over 2 years ago.

Assignee:Yukihiro Matsumoto


I noticed that "(({->word}))" doesn't mean anything. i.e.

SyntaxError: (irb):4: syntax error, unexpected '\n', expecting keyword_do_LAMBDA or tLAMBEG
from /opt/Ruby/1.9.3-p327/bin/irb:12:in `'

If that is always so, then could it be given a meaning as a shorthand for (({method()}))? i.e.


would be the same as writing



Related issues

Duplicated by Ruby trunk - Feature #7907: Give meaning to staby word Rejected 02/22/2013


#1 Updated by Thomas Sawyer over 2 years ago

Please fix. Sigh.

#2 Updated by Koichi Sasada over 2 years ago

  • Description updated (diff)
  • Assignee set to Yukihiro Matsumoto

#3 Updated by Nobuyoshi Nakada over 2 years ago

  • Description updated (diff)

It doesn't seem a good idea to me, because "foo" has different meanings, parameter and method name.

#4 Updated by Yukihiro Matsumoto over 2 years ago

  • Status changed from Open to Rejected

See #7907

Also available in: Atom PDF