[#90865] [Ruby trunk Bug#15499] Breaking behavior on ruby 2.6: rb_thread_call_without_gvl doesn't invoke unblock_function when used on the main thread — apolcyn@...
Issue #15499 has been reported by apolcyn (alex polcyn).
3 messages
2019/01/03
[#90877] [Ruby trunk Bug#15499] Breaking behavior on ruby 2.6: rb_thread_call_without_gvl doesn't invoke unblock_function when used on the main thread — apolcyn@...
Issue #15499 has been updated by apolcyn (alex polcyn).
3 messages
2019/01/03
[#90895] Re: [ruby-alerts:11680] failure alert on trunk-mjit@silicon-docker (NG (r66707)) — Eric Wong <normalperson@...>
ko1c-failure@atdot.net wrote:
4 messages
2019/01/05
[#90896] Re: [ruby-alerts:11680] failure alert on trunk-mjit@silicon-docker (NG (r66707))
— Takashi Kokubun <takashikkbn@...>
2019/01/05
Thanks to explain that.
[#91200] [Ruby trunk Feature#15553] Addrinfo.getaddrinfo supports timeout — glass.saga@...
Issue #15553 has been reported by Glass_saga (Masaki Matsushita).
4 messages
2019/01/21
[#91289] Re: [Ruby trunk Feature#15553] Addrinfo.getaddrinfo supports timeout
— Eric Wong <normalperson@...>
2019/01/26
glass.saga@gmail.com wrote:
[ruby-core:91221] [Ruby trunk Feature#13807] A method to filter the receiver against some condition
From:
sawadatsuyoshi@...
Date:
2019-01-23 09:18:18 UTC
List:
ruby-core #91221
Issue #13807 has been updated by sawa (Tsuyoshi Sawada).
I came up with an idea better than this (https://bugs.ruby-lang.org/issues/15557).
So I withdraw this proposal. Please close it.
----------------------------------------
Feature #13807: A method to filter the receiver against some condition
https://bugs.ruby-lang.org/issues/13807#change-76459
* Author: sawa (Tsuyoshi Sawada)
* Status: Open
* Priority: Normal
* Assignee:
* Target version:
----------------------------------------
I frequently see code that uses some value if that value satisfies a certain condition, and something else otherwise.
```ruby
a.some_condition ? a : b
```
And in most cases, the value of `a` is non-nil when the condition is satisfied.
I propose to have a method, perhaps named `verify`, which would implemented to be equivalent to this definition:
```ruby
class Object
def verify
self if yield(self)
end
end
```
Then, we can write the expression above (assuming `a` is non-nil when the condition is satisfied) like this:
```ruby
a.verify{|a| a.some_condition} || b
```
Perhaps it would also be useful to do something like:
```ruby
a.verify{|a| a.some_condition}&.chaining_of_more_methods
```
--
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>