General

Profile

baweaver (Brandon Weaver)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 7 5 12

Activity

02/10/2021

07:56 AM Ruby master Feature #17140: Merge Enumerable#grep(_v) with Enumerable#select/reject
Would this feature still be of interest? baweaver (Brandon Weaver)
07:53 AM Ruby master Feature #7394: Enumerable#find ifnone parameter could be non-callable
A second argument, however, could be made that `find_index` provides a different API:
```ruby
(1..100).find_index...
baweaver (Brandon Weaver)
07:48 AM Ruby master Feature #7394: Enumerable#find ifnone parameter could be non-callable
I rather like @ioquatix idea here, and was considering making a similar ticket to suggest that `ifnone` does not make... baweaver (Brandon Weaver)

01/30/2021

09:03 AM Ruby master Bug #17596: Calling parameters on `new` method results in :rest and -1 arity
Ah, this makes some sense, and I'd just seen [something similar on Twitter](https://twitter.com/pixeltrix/status/1355... baweaver (Brandon Weaver)
08:47 AM Ruby master Bug #17596: Calling parameters on `new` method results in :rest and -1 arity
It should be noted that this happens with `new` and `initialize` both baweaver (Brandon Weaver)
08:45 AM Ruby master Bug #17596 (Rejected): Calling parameters on `new` method results in :rest and -1 arity
Consider the following class:
```ruby
class Testing
def initialize(a, b, c)
# ...
end
end
```
......
baweaver (Brandon Weaver)
06:20 AM Ruby master Bug #17595: [Pattern Matching] deconstruct_keys with zero patterns supplies nil for keys argument
An alternative patch would to be raising an exception as an empty hash for a match feels like an invalid case, as men... baweaver (Brandon Weaver)
06:10 AM Ruby master Bug #17595 (Rejected): [Pattern Matching] deconstruct_keys with zero patterns supplies nil for keys argument
Example:
```ruby
Test = Struct.new(:a, :b) do
def deconstruct_keys(ks)
p ks: ks
to_h.slice(*ks)
e...
baweaver (Brandon Weaver)

01/19/2021

03:59 AM Ruby master Feature #17551: Pattern Matching - Default Object#deconstruct and Object#deconstruct_keys
I believe this issue should be closed, as it has an alternative resolution available:
I will start to implement pa...
baweaver (Brandon Weaver)

01/18/2021

05:14 AM Ruby master Feature #17551: Pattern Matching - Default Object#deconstruct and Object#deconstruct_keys
That is a very fair point, and I appreciate your insight there. I would be tempted to add it to `Enumerable` except i... baweaver (Brandon Weaver)

Also available in: Atom