General

Profile

amcaplan (Ariel Caplan)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 1 2 3

Activity

05/24/2022

10:02 PM Ruby master Feature #14602: Version of dig that raises error if a key is not present
We can think of this as either a variation of `fetch` or a variation of `dig`. Ultimately it's both, of course, just ... amcaplan (Ariel Caplan)

12/24/2020

10:30 AM Ruby master Bug #17427: Hash getting multiple identical keys
Thanks, Jeremy!
I'm aware that `hash` values can overlap, it was just a shortcut to find problematic situations. I...
amcaplan (Ariel Caplan)

12/22/2020

09:31 PM Ruby master Bug #17427 (Rejected): Hash getting multiple identical keys
I have a situation where a hash (contained within a Set) seems to get duplicate keys. I've had some difficulty reprod... amcaplan (Ariel Caplan)

12/01/2019

08:43 AM Ruby master Feature #15563: #dig that throws an exception if a key doesn't exist
matz (Yukihiro Matsumoto) wrote:
> I am against `dig!` for this purpose. When we have two versions of a method (`foo...
amcaplan (Ariel Caplan)

03/14/2018

01:01 PM Ruby master Feature #14602: Version of dig that raises error if a key is not present
duerst (Martin Dürst) wrote:
> Would a keyword parameter to dig work for you?
>
> E.g. `hash.dig!(:name, :middle,...
amcaplan (Ariel Caplan)
12:58 PM Ruby master Feature #14602: Version of dig that raises error if a key is not present
shevegen (Robert A. Heiler) wrote:
> I think this may be somewhat problematic since it does not appear
> to fit to...
amcaplan (Ariel Caplan)

03/13/2018

06:29 PM Ruby master Feature #14602 (Open): Version of dig that raises error if a key is not present
Currently, if I have a hash like this:
~~~ ruby
{
:name => {
:first => "Ariel",
:last => "...
amcaplan (Ariel Caplan)

12/27/2015

04:02 PM Ruby master Bug #11901: Performance Issue with OpenStruct
Now, to throw in my own opinion: probably the simplest fix would be to circumvent the `#respond_to?` check if we hit ... amcaplan (Ariel Caplan)
03:48 PM Ruby master Bug #11901: Performance Issue with OpenStruct
To be more specific (but not clog up the description), the problem can be traced to https://github.com/ruby/ruby/blob... amcaplan (Ariel Caplan)
03:37 PM Ruby master Bug #11901 (Closed): Performance Issue with OpenStruct
After recent changes to define OpenStruct getter/setter methods lazily, there is a heavy performance impact for the u... amcaplan (Ariel Caplan)

Also available in: Atom