Issue #7907 has been reported by trans (Thomas Sawyer). ---------------------------------------- Feature #7907: Give meaning to staby word https://bugs.ruby-lang.org/issues/7907 Author: trans (Thomas Sawyer) Status: Open Priority: Normal Assignee: 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 `<main>' 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
on 2013-02-21 19:10
on 2013-02-22 01:04
Issue #7907 has been updated by ko1 (Koichi Sasada). Description updated Assignee set to matz (Yukihiro Matsumoto) ---------------------------------------- Feature #7907: Give meaning to staby word https://bugs.ruby-lang.org/issues/7907#change-36731 Author: trans (Thomas Sawyer) Status: Open 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 `<main>' 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
on 2013-02-22 04:10
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 `<main>'
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
on 2013-02-22 05:05
Issue #7907 has been updated by trans (Thomas Sawyer).
Ah, `->foo{}` did not know that the parenthesis could be left out.
Ok, I'll suggest slight modification then, b/c it still would be nice to
have a shorter notation (not just to fill a syntax hole). Could it be a
symbol, i.e. `->:foo`.
----------------------------------------
Feature #7907: Give meaning to staby word
https://bugs.ruby-lang.org/issues/7907#change-36768
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 `<main>'
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
on 2013-02-22 15:50
Issue #7907 has been updated by trans (Thomas Sawyer). Once a issue has been rejected, is it necessary to open a new case for a modified form of the proposal? In other words is any one going to see the change if it has already been rejected? As with this case? ---------------------------------------- Feature #7907: Give meaning to staby word https://bugs.ruby-lang.org/issues/7907#change-36790 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 `<main>' 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
on 2013-02-22 18:05
Issue #7907 has been updated by rosenfeld (Rodrigo Rosenfeld Rosas). People will see the changes but when they're looking for open issues to decide what to do about them they won't touch closed issues :) ---------------------------------------- Feature #7907: Give meaning to staby word https://bugs.ruby-lang.org/issues/7907#change-36796 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 `<main>' 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
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.