General

Profile

colindkelley (Colin Kelley)

Issues

Activity

12/22/2015

04:49 PM Ruby trunk Bug #11762: Array#dig can raise TypeError: no implicit conversion of Symbol/String into Integer
Hi Matz, do you have any reactions to the above? colindkelley (Colin Kelley)

12/13/2015

08:13 PM Ruby trunk Bug #11762: Array#dig can raise TypeError: no implicit conversion of Symbol/String into Integer
> If #dig returns nil instead of exception, as you want, we cannot distinguish case 2 and case 3.
I've looked at a...
colindkelley (Colin Kelley)

12/12/2015

10:19 PM Ruby trunk Bug #11762: Array#dig can raise TypeError: no implicit conversion of Symbol/String into Integer
As described by Matz, it sounds like the implementation would be equivalent to
~~~
def dig(key, *keys)
value =...
colindkelley (Colin Kelley)

12/08/2015

04:03 AM Ruby trunk Bug #11762: Array#dig can raise TypeError: no implicit conversion of Symbol/String into Integer
Here is my suggested documentation on how `Hash#dig` should behave as part of a general `dig` protocol. The patch in... colindkelley (Colin Kelley)
01:35 AM Ruby trunk Bug #11762: Array#dig can raise TypeError: no implicit conversion of Symbol/String into Integer
> I'd guess, like Colin, that returning nil is probably the best. Makes debugging harder when writing new code, but m... colindkelley (Colin Kelley)

12/07/2015

03:59 PM Ruby trunk Bug #11759: URI breaks with frozen strings
> I prefer String.new() to "".dup because the former describes intention (of creating a buffer).
Ok. I've attached...
colindkelley (Colin Kelley)

12/05/2015

04:32 PM Ruby trunk Bug #11762: Array#dig can raise TypeError: no implicit conversion of Symbol/String into Integer
> I think it should return nil in this case.
Anyone else have an opinion?
colindkelley (Colin Kelley)
04:20 PM Ruby trunk Bug #11759: URI breaks with frozen strings
> Outputs:
> 480
> 416
> 416
That is more significant than I thought. `''.dup` wins.
> No, we shouldn't worr...
colindkelley (Colin Kelley)

12/03/2015

05:20 AM Ruby trunk Bug #11759: URI breaks with frozen strings
> Yes, but I prefer to avoid String.new because the constant lookup
> requires an inline cache lookup + storage entr...
colindkelley (Colin Kelley)

12/02/2015

07:38 AM Ruby trunk Bug #11762 (Closed): Array#dig can raise TypeError: no implicit conversion of Symbol/String into Integer
If you try to `dig` in an Array using a symbol or string, a `TypeError` exception will be raised:
irb> ['zero', 'o...
colindkelley (Colin Kelley)

Also available in: Atom