ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:69887] [Ruby trunk - Feature #11337] [Open] Allow rescue without begin inside blocks
       [not found] <redmine.issue-11337.20150707133807@ruby-lang.org>
@ 2015-07-07 13:38 ` rr.rosas
  2016-08-01 12:58 ` [ruby-core:76639] [Ruby trunk Feature#11337] " rr.rosas
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: rr.rosas @ 2015-07-07 13:38 UTC (permalink / raw)
  To: ruby-core

Issue #11337 has been reported by Rodrigo Rosenfeld Rosas.

----------------------------------------
Feature #11337: Allow rescue without begin inside blocks
https://bugs.ruby-lang.org/issues/11337

* Author: Rodrigo Rosenfeld Rosas
* Status: Open
* Priority: Normal
* Assignee: Yukihiro Matsumoto
----------------------------------------
While it's possible to have rescue's without begin in method definitions it's not possible to have the same facility inside blocks. For example, this is currently not possible:

~~~
1.times do
  abc
rescue
  p 'error'
end
~~~

But this is possible

~~~
def a
  abc
rescue
  p 'error'
end
~~~

Would it be possible to also allow rescue without begin inside blocks too?



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

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

* [ruby-core:76639] [Ruby trunk Feature#11337] Allow rescue without begin inside blocks
       [not found] <redmine.issue-11337.20150707133807@ruby-lang.org>
  2015-07-07 13:38 ` [ruby-core:69887] [Ruby trunk - Feature #11337] [Open] Allow rescue without begin inside blocks rr.rosas
@ 2016-08-01 12:58 ` rr.rosas
  2016-08-02  1:54 ` [ruby-core:76648] " shyouhei
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: rr.rosas @ 2016-08-01 12:58 UTC (permalink / raw)
  To: ruby-core

Issue #11337 has been updated by Rodrigo Rosenfeld Rosas.


Could you please close this one? It seems it's a duplicate of issue #7882.

issue #12623 seems to be yet another recent request for the same feature and should probably be closed as a duplicate of #7882 as well.

----------------------------------------
Feature #11337: Allow rescue without begin inside blocks
https://bugs.ruby-lang.org/issues/11337#change-59857

* Author: Rodrigo Rosenfeld Rosas
* Status: Open
* Priority: Normal
* Assignee: Yukihiro Matsumoto
----------------------------------------
While it's possible to have rescue's without begin in method definitions it's not possible to have the same facility inside blocks. For example, this is currently not possible:

~~~
1.times do
  abc
rescue
  p 'error'
end
~~~

But this is possible

~~~
def a
  abc
rescue
  p 'error'
end
~~~

Would it be possible to also allow rescue without begin inside blocks too?



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

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

* [ruby-core:76648] [Ruby trunk Feature#11337] Allow rescue without begin inside blocks
       [not found] <redmine.issue-11337.20150707133807@ruby-lang.org>
  2015-07-07 13:38 ` [ruby-core:69887] [Ruby trunk - Feature #11337] [Open] Allow rescue without begin inside blocks rr.rosas
  2016-08-01 12:58 ` [ruby-core:76639] [Ruby trunk Feature#11337] " rr.rosas
@ 2016-08-02  1:54 ` shyouhei
  2016-08-02 11:20   ` [ruby-core:76662] " Martin J. Dürst
  2016-08-03 19:23 ` [ruby-core:76686] " rr.rosas
                   ` (2 subsequent siblings)
  5 siblings, 1 reply; 8+ messages in thread
From: shyouhei @ 2016-08-02  1:54 UTC (permalink / raw)
  To: ruby-core

Issue #11337 has been updated by Shyouhei Urabe.


Issues linked. I guess those duplicated issues synchronizes their status each other so I don't close them (am I correct?).

----------------------------------------
Feature #11337: Allow rescue without begin inside blocks
https://bugs.ruby-lang.org/issues/11337#change-59868

* Author: Rodrigo Rosenfeld Rosas
* Status: Open
* Priority: Normal
* Assignee: Yukihiro Matsumoto
----------------------------------------
While it's possible to have rescue's without begin in method definitions it's not possible to have the same facility inside blocks. For example, this is currently not possible:

~~~
1.times do
  abc
rescue
  p 'error'
end
~~~

But this is possible

~~~
def a
  abc
rescue
  p 'error'
end
~~~

Would it be possible to also allow rescue without begin inside blocks too?



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

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

* [ruby-core:76662] Re: [Ruby trunk Feature#11337] Allow rescue without begin inside blocks
  2016-08-02  1:54 ` [ruby-core:76648] " shyouhei
@ 2016-08-02 11:20   ` Martin J. Dürst
  0 siblings, 0 replies; 8+ messages in thread
From: Martin J. Dürst @ 2016-08-02 11:20 UTC (permalink / raw)
  To: Ruby developers

On 2016/08/02 10:54, shyouhei@ruby-lang.org wrote:

> I guess those duplicated issues synchronizes their status each other so I don't close them (am I correct?).

I guess it depends on how you linked them. If it's just 'related', then 
the status of each is independent. If it's 'depends on', then you can 
close one without closing the other, but not the other way round. But 
I'm not sure this is enforced.

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

* [ruby-core:76686] [Ruby trunk Feature#11337] Allow rescue without begin inside blocks
       [not found] <redmine.issue-11337.20150707133807@ruby-lang.org>
                   ` (2 preceding siblings ...)
  2016-08-02  1:54 ` [ruby-core:76648] " shyouhei
@ 2016-08-03 19:23 ` rr.rosas
  2016-08-04  9:28   ` [ruby-core:76731] " Martin J. Dürst
  2016-08-03 19:24 ` [ruby-core:76687] " rr.rosas
  2016-08-04  6:48 ` [ruby-core:76701] [Ruby trunk Feature#11337][Closed] " shyouhei
  5 siblings, 1 reply; 8+ messages in thread
From: rr.rosas @ 2016-08-03 19:23 UTC (permalink / raw)
  To: ruby-core

Issue #11337 has been updated by Rodrigo Rosenfeld Rosas.


http://www.redmine.org/projects/redmine/wiki/RedmineIssues

"duplicates - Links issues so that closing one, will close the other (e.g. closing A will close B)
For example, if issue B duplicates A:
- closing B will leave A open
- closing A will automatically close B

duplicated by - Reciprocal of duplicates.
For example, if issue A is duplicated by issue B:
- closing B will leave A open
- closing A will automatically close B"

I'm not sure I completely understand this but it seems to be possible to close the duplicates without closing the original even though they would be automatically closed if using the right relation :)

----------------------------------------
Feature #11337: Allow rescue without begin inside blocks
https://bugs.ruby-lang.org/issues/11337#change-59902

* Author: Rodrigo Rosenfeld Rosas
* Status: Open
* Priority: Normal
* Assignee: Yukihiro Matsumoto
----------------------------------------
While it's possible to have rescue's without begin in method definitions it's not possible to have the same facility inside blocks. For example, this is currently not possible:

~~~
1.times do
  abc
rescue
  p 'error'
end
~~~

But this is possible

~~~
def a
  abc
rescue
  p 'error'
end
~~~

Would it be possible to also allow rescue without begin inside blocks too?



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

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

* [ruby-core:76687] [Ruby trunk Feature#11337] Allow rescue without begin inside blocks
       [not found] <redmine.issue-11337.20150707133807@ruby-lang.org>
                   ` (3 preceding siblings ...)
  2016-08-03 19:23 ` [ruby-core:76686] " rr.rosas
@ 2016-08-03 19:24 ` rr.rosas
  2016-08-04  6:48 ` [ruby-core:76701] [Ruby trunk Feature#11337][Closed] " shyouhei
  5 siblings, 0 replies; 8+ messages in thread
From: rr.rosas @ 2016-08-03 19:24 UTC (permalink / raw)
  To: ruby-core

Issue #11337 has been updated by Rodrigo Rosenfeld Rosas.


If I understood it correctly, this issues currently duplicates #7882 which means closing this one would keep the other open.

----------------------------------------
Feature #11337: Allow rescue without begin inside blocks
https://bugs.ruby-lang.org/issues/11337#change-59903

* Author: Rodrigo Rosenfeld Rosas
* Status: Open
* Priority: Normal
* Assignee: Yukihiro Matsumoto
----------------------------------------
While it's possible to have rescue's without begin in method definitions it's not possible to have the same facility inside blocks. For example, this is currently not possible:

~~~
1.times do
  abc
rescue
  p 'error'
end
~~~

But this is possible

~~~
def a
  abc
rescue
  p 'error'
end
~~~

Would it be possible to also allow rescue without begin inside blocks too?



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

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

* [ruby-core:76701] [Ruby trunk Feature#11337][Closed] Allow rescue without begin inside blocks
       [not found] <redmine.issue-11337.20150707133807@ruby-lang.org>
                   ` (4 preceding siblings ...)
  2016-08-03 19:24 ` [ruby-core:76687] " rr.rosas
@ 2016-08-04  6:48 ` shyouhei
  5 siblings, 0 replies; 8+ messages in thread
From: shyouhei @ 2016-08-04  6:48 UTC (permalink / raw)
  To: ruby-core

Issue #11337 has been updated by Shyouhei Urabe.

Status changed from Open to Closed

Hmm..  Thank you for the check.  It is complicated than I thought.  Closing this one anyway.

----------------------------------------
Feature #11337: Allow rescue without begin inside blocks
https://bugs.ruby-lang.org/issues/11337#change-59919

* Author: Rodrigo Rosenfeld Rosas
* Status: Closed
* Priority: Normal
* Assignee: Yukihiro Matsumoto
----------------------------------------
While it's possible to have rescue's without begin in method definitions it's not possible to have the same facility inside blocks. For example, this is currently not possible:

~~~
1.times do
  abc
rescue
  p 'error'
end
~~~

But this is possible

~~~
def a
  abc
rescue
  p 'error'
end
~~~

Would it be possible to also allow rescue without begin inside blocks too?



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

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

* [ruby-core:76731] Re: [Ruby trunk Feature#11337] Allow rescue without begin inside blocks
  2016-08-03 19:23 ` [ruby-core:76686] " rr.rosas
@ 2016-08-04  9:28   ` Martin J. Dürst
  0 siblings, 0 replies; 8+ messages in thread
From: Martin J. Dürst @ 2016-08-04  9:28 UTC (permalink / raw)
  To: Ruby developers

On 2016/08/04 04:23, rr.rosas@gmail.com wrote:

> http://www.redmine.org/projects/redmine/wiki/RedmineIssues

> I'm not sure I completely understand this but it seems to be possible to close the duplicates without closing the original even though they would be automatically closed if using the right relation :)

Well, I guess closing the duplicate is done because it's recognized as a 
duplicate and no longer needed. Closing the original means that the 
problem itself is solved, so it would be wrong to keep the duplicates open.

Regards,   Martin.

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

end of thread, other threads:[~2016-08-04  8:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <redmine.issue-11337.20150707133807@ruby-lang.org>
2015-07-07 13:38 ` [ruby-core:69887] [Ruby trunk - Feature #11337] [Open] Allow rescue without begin inside blocks rr.rosas
2016-08-01 12:58 ` [ruby-core:76639] [Ruby trunk Feature#11337] " rr.rosas
2016-08-02  1:54 ` [ruby-core:76648] " shyouhei
2016-08-02 11:20   ` [ruby-core:76662] " Martin J. Dürst
2016-08-03 19:23 ` [ruby-core:76686] " rr.rosas
2016-08-04  9:28   ` [ruby-core:76731] " Martin J. Dürst
2016-08-03 19:24 ` [ruby-core:76687] " rr.rosas
2016-08-04  6:48 ` [ruby-core:76701] [Ruby trunk Feature#11337][Closed] " shyouhei

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).