[#79440] [Ruby trunk Bug#13188] Reinitialize Ruby VM. — shyouhei@...
SXNzdWUgIzEzMTg4IGhhcyBiZWVuIHVwZGF0ZWQgYnkgU2h5b3VoZWkgVXJhYmUuCgoKTWFydGlu
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:79654] [Ruby trunk Feature#12995][Rejected] Conditional expression taking a receiver outside the condition
From:
matz@...
Date:
2017-02-22 05:49:02 UTC
List:
ruby-core #79654
Issue #12995 has been updated by Yukihiro Matsumoto. Status changed from Open to Rejected Interesting proposal but this changes the meaning of `if` and `case` too much. Matz. ---------------------------------------- Feature #12995: Conditional expression taking a receiver outside the condition https://bugs.ruby-lang.org/issues/12995#change-63071 * Author: Tsuyoshi Sawada * Status: Rejected * Priority: Normal * Assignee: * Target version: ---------------------------------------- Since a conditional expression has a return value, we can continue a method chain after a conditional expression like this: ```ruby if hoge foo1.foo2.foo3 else bar1.bar2 end .baz1.baz2.baz3.baz4 ``` ```ruby case hoge when hoge1 foo1.foo2.foo3 when hoge2 bar1.bar2 end .baz1.baz2.baz3.baz4 ``` It is convenient if we can have a condition after or in the middle of a chain. I would like to do this: ```ruby baz1.baz2.baz3.baz4. if hoge foo1.foo2.foo3 else bar1.bar2 end ``` ```ruby baz1.baz2.baz3.baz4 if hoge .foo1.foo2.foo3 else .bar1.bar2 end ``` ```ruby baz1.baz2.baz3.baz4. case hoge when hoge1 foo1.foo2.foo3 when hoge2 bar1.bar2 end ``` ```ruby baz1.baz2.baz3.baz4 case hoge when hoge1 .foo1.foo2.foo3 when hoge2 .bar1.bar2 end ``` -- 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>