ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:70476] [Ruby trunk - Bug #11470] [Open] extra parens required for if/unless/rescue modifier expressions in single arg method invocations
       [not found] <redmine.issue-11470.20150820162758@ruby-lang.org>
@ 2015-08-20 16:28 ` alxtskrnk
  2015-08-21  7:54 ` [ruby-core:70502] [Ruby trunk - Bug #11470] [Rejected] " nobu
  2015-09-14  0:39 ` [ruby-core:70798] [Ruby trunk - Bug #11470] " alxtskrnk
  2 siblings, 0 replies; 3+ messages in thread
From: alxtskrnk @ 2015-08-20 16:28 UTC (permalink / raw
  To: ruby-core

Issue #11470 has been reported by bug hit.

----------------------------------------
Bug #11470: extra parens required for if/unless/rescue modifier expressions in single arg method invocations
https://bugs.ruby-lang.org/issues/11470

* Author: bug hit
* Status: Open
* Priority: Normal
* Assignee: 
* ruby -v: 
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
foo(1 if true) is not allowed requiring foo((1 if true))

also foo(1 unless true) foo(bar rescue 1)




-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ruby-core:70502] [Ruby trunk - Bug #11470] [Rejected] extra parens required for if/unless/rescue modifier expressions in single arg method invocations
       [not found] <redmine.issue-11470.20150820162758@ruby-lang.org>
  2015-08-20 16:28 ` [ruby-core:70476] [Ruby trunk - Bug #11470] [Open] extra parens required for if/unless/rescue modifier expressions in single arg method invocations alxtskrnk
@ 2015-08-21  7:54 ` nobu
  2015-09-14  0:39 ` [ruby-core:70798] [Ruby trunk - Bug #11470] " alxtskrnk
  2 siblings, 0 replies; 3+ messages in thread
From: nobu @ 2015-08-21  7:54 UTC (permalink / raw
  To: ruby-core

Issue #11470 has been updated by Nobuyoshi Nakada.

Status changed from Open to Rejected

It's a spec.

----------------------------------------
Bug #11470: extra parens required for if/unless/rescue modifier expressions in single arg method invocations
https://bugs.ruby-lang.org/issues/11470#change-53901

* Author: bug hit
* Status: Rejected
* Priority: Normal
* Assignee: 
* ruby -v: 
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
foo(1 if true) is not allowed requiring foo((1 if true))

also foo(1 unless true) foo(bar rescue 1)




-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ruby-core:70798] [Ruby trunk - Bug #11470] extra parens required for if/unless/rescue modifier expressions in single arg method invocations
       [not found] <redmine.issue-11470.20150820162758@ruby-lang.org>
  2015-08-20 16:28 ` [ruby-core:70476] [Ruby trunk - Bug #11470] [Open] extra parens required for if/unless/rescue modifier expressions in single arg method invocations alxtskrnk
  2015-08-21  7:54 ` [ruby-core:70502] [Ruby trunk - Bug #11470] [Rejected] " nobu
@ 2015-09-14  0:39 ` alxtskrnk
  2 siblings, 0 replies; 3+ messages in thread
From: alxtskrnk @ 2015-09-14  0:39 UTC (permalink / raw
  To: ruby-core

Issue #11470 has been updated by bug hit.


Nobuyoshi Nakada wrote:
> It's a spec.

What code would break if `foo(1 if true)` were valid?

None I would think so why not have it work, there is no abmiguity?

----------------------------------------
Bug #11470: extra parens required for if/unless/rescue modifier expressions in single arg method invocations
https://bugs.ruby-lang.org/issues/11470#change-54183

* Author: bug hit
* Status: Rejected
* Priority: Normal
* Assignee: 
* ruby -v: 
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
foo(1 if true) is not allowed requiring foo((1 if true))

also foo(1 unless true) foo(bar rescue 1)




-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-09-14  0:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <redmine.issue-11470.20150820162758@ruby-lang.org>
2015-08-20 16:28 ` [ruby-core:70476] [Ruby trunk - Bug #11470] [Open] extra parens required for if/unless/rescue modifier expressions in single arg method invocations alxtskrnk
2015-08-21  7:54 ` [ruby-core:70502] [Ruby trunk - Bug #11470] [Rejected] " nobu
2015-09-14  0:39 ` [ruby-core:70798] [Ruby trunk - Bug #11470] " alxtskrnk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).