[#88925] [Ruby trunk Feature#15095] [PATCH] share VM stack between threads and fibers if identical — ko1@...
Issue #15095 has been updated by ko1 (Koichi Sasada).
4 messages
2018/09/09
[#88927] Re: [Ruby trunk Feature#15095] [PATCH] share VM stack between threads and fibers if identical
— Eric Wong <normalperson@...>
2018/09/09
ko1@atdot.net wrote:
[#88926] [Ruby trunk Feature#15095] [PATCH] share VM stack between threads and fibers if identical — ko1@...
Issue #15095 has been updated by ko1 (Koichi Sasada).
3 messages
2018/09/09
[#89218] [Ruby trunk Bug#15130] open-uri hangs on cygwin — duerst@...
Issue #15130 has been updated by duerst (Martin D端rst).
5 messages
2018/09/30
[ruby-core:89122] [Ruby trunk Bug#15145] chained mappings proposal
From:
koen@...
Date:
2018-09-21 19:27:36 UTC
List:
ruby-core #89122
Issue #15145 has been reported by koenhandekyn (koen handekyn).
----------------------------------------
Bug #15145: chained mappings proposal
https://bugs.ruby-lang.org/issues/15145
* Author: koenhandekyn (koen handekyn)
* Status: Open
* Priority: Normal
* Assignee:
* Target version:
* ruby -v:
* Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN
----------------------------------------
propsal, have map accept array of method references to make chained mapping simpler with suggestion to implement it to behave like the &. operator so that intermediate nil values just ripple through as nil values
as alternative to (with important remark is that if first or second mapping returns nil values the above code will break, forcing a much more verbose notation)
~~~ ruby
collection.map(&:instrument).map(&:issuer).map(&:name)
~~~
equivalent to
~~~ ruby
collection.map { |e| e&.instrument }.map { |e| e&.issuer }.map { |e| e&.name }
~~~
proposal allow
~~~ ruby
collection.map(&:instrument, &:issuer, &:name)
~~~
implementation is trivial
--
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>