General

Profile

baweaver (Brandon Weaver)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 9 8 17

Activity

10/24/2022

05:08 AM Ruby master Bug #19080: String Range inclusion using `===` broken
I've found this which illustrates that it uses `String#cover?` but that's really confusing for me at least:
https://...
baweaver (Brandon Weaver)
05:00 AM Ruby master Bug #19080 (Rejected): String Range inclusion using `===` broken
When using `===` implicitly for a pattern match I noticed a behavior which I believe is a bug in Ruby. `===` does not... baweaver (Brandon Weaver)

10/23/2022

03:37 AM Ruby master Feature #18821: Expose Pattern Matching interfaces in core classes
We might consider `Net::HTTP::Response`, I can get a PR out against that one shortly. Simple implementation might be:... baweaver (Brandon Weaver)

10/20/2022

05:30 AM Ruby master Bug #19033: One-liner pattern match as Boolean arg syntax error
mame (Yusuke Endoh) wrote in #note-6:
> Note that `foo(1, 2, 3 in ary)` could be inherently ambiguous. It can be int...
baweaver (Brandon Weaver)

10/19/2022

12:52 AM Ruby master Feature #19063: Hash.new with non-value objects should be less confusing
etienne (Étienne Barrié) wrote in #note-24:
> While I like the idea of checking the arity of the block, maybe the co...
baweaver (Brandon Weaver)

10/17/2022

05:49 PM Ruby master Feature #19063: Hash.new with non-value objects should be less confusing
I would agree that `Hash.new { [] }` would be very nice, and as mentioned has a dual in `Array.new(5) { [] }`.
Whi...
baweaver (Brandon Weaver)
03:04 AM Ruby master Feature #19063: Hash.new with non-value objects should be less confusing
> austin (Austin Ziegler) wrote in #note-4:
> So this is *very* widespread, and experienced Rubyists make this mista...
baweaver (Brandon Weaver)
03:01 AM Ruby master Feature #19063: Hash.new with non-value objects should be less confusing
> For note, coming up with a lot of examples pointing towards that is not a proof.
Then what would qualify as a pr...
baweaver (Brandon Weaver)
02:54 AM Ruby master Feature #19063: Hash.new with non-value objects should be less confusing
sawa (Tsuyoshi Sawada) wrote in #note-2:
> > When people use Hash.new([]) they mean Hash.new { |h, k| h[k] = [] }.
> ...
baweaver (Brandon Weaver)

10/16/2022

10:24 PM Ruby master Feature #19063 (Open): Hash.new with non-value objects should be less confusing
Related to #10713 and #2764.
Ruby's `Hash.new` accepts either a block or a param for its default value. In the cas...
baweaver (Brandon Weaver)

Also available in: Atom