General

Profile

baweaver (Brandon Weaver)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 6 6 12

Activity

09/13/2021

04:54 AM Ruby master Revision 46769217 (git): Adds mixed hash value and value omission tests
Introduces specification tests for mixed values and value omissions for
Hashes and keyword arguments, such as `{ a:, ...
baweaver (Brandon Weaver)
03:53 AM Ruby master Feature #14579: Hash value omission
knu (Akinori MUSHA) wrote in #note-18:
> We should allow it to call a (private) method if no variable with the name ...
baweaver (Brandon Weaver)

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)

Also available in: Atom