[#79440] [Ruby trunk Bug#13188] Reinitialize Ruby VM. — shyouhei@...
Issue #13188 has been updated by Shyouhei Urabe.
6 messages
2017/02/06
[#79441] Re: [Ruby trunk Bug#13188] Reinitialize Ruby VM.
— SASADA Koichi <ko1@...>
2017/02/06
On 2017/02/06 10:10, shyouhei@ruby-lang.org wrote:
[#79532] Immutable Strings vs Symbols — Daniel Ferreira <subtileos@...>
Hi,
15 messages
2017/02/15
[#79541] Re: Immutable Strings vs Symbols
— Rodrigo Rosenfeld Rosas <rr.rosas@...>
2017/02/15
Em 15-02-2017 05:05, Daniel Ferreira escreveu:
[#79543] Re: Immutable Strings vs Symbols
— Daniel Ferreira <subtileos@...>
2017/02/16
Hi Rodrigo,
[#79560] Re: Immutable Strings vs Symbols
— Rodrigo Rosenfeld Rosas <rr.rosas@...>
2017/02/16
Em 15-02-2017 22:39, Daniel Ferreira escreveu:
[ruby-core:79423] [Ruby trunk Feature#7882][Closed] Allow rescue/else/ensure in do..end
From:
nobu@...
Date:
2017-02-04 01:33:17 UTC
List:
ruby-core #79423
Issue #7882 has been updated by Nobuyoshi Nakada.
Status changed from Assigned to Closed
----------------------------------------
Feature #7882: Allow rescue/else/ensure in do..end
https://bugs.ruby-lang.org/issues/7882#change-62853
* Author: Charlie Somerville
* Status: Closed
* Priority: Normal
* Assignee: Yukihiro Matsumoto
* Target version:
----------------------------------------
The keywords `rescue`, `else` and `ensure` can be used when defining methods like so:
```ruby
def foo
#
rescue
#
else
#
ensure
#
end
```
However when using a block delimited by do..end, you must use `begin`..`end` as well:
```ruby
foo do
begin
# ...
rescue
# ...
# ...
end
end
```
It would be nice to be able to drop the extra `begin`..`end` and use `rescue`, etc. clauses directly:
```ruby
foo do
# ...
rescue
# ...
# ...
end
```
I cannot think of any ambiguities this syntax would cause, but please correct me if I am wrong.
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>