From: "matz (Yukihiro Matsumoto)" Date: 2013-02-22T12:10:07+09:00 Subject: [ruby-core:52675] [ruby-trunk - Feature #7907][Rejected] Give meaning to staby word Issue #7907 has been updated by matz (Yukihiro Matsumoto). Status changed from Open to Rejected =begin I think filling the syntax hole eagerly is a bad idea. Besides that, I don't think making ((%->foo%)) as method(:foo).to_proc seems a good idea, since foo in ((%->foo{}%)) is a argument name, not a method name. Matz. =end ---------------------------------------- Feature #7907: Give meaning to staby word https://bugs.ruby-lang.org/issues/7907#change-36762 Author: trans (Thomas Sawyer) Status: Rejected Priority: Normal Assignee: matz (Yukihiro Matsumoto) Category: core Target version: Next Major =begin I noticed that `->word` doesn't mean anything. i.e. >> ->foo 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. ->foo would be the same as writing method(:foo).to_proc =end -- http://bugs.ruby-lang.org/