Refactor rescuing KeyError and IndexError to use nilable index accessor instead.
This is a breaking change for resolve_with_hash_accessor if the backing implementation only respond to #[] and not #[]?. But per documenation, backing implementations are expected to expose a hash-like interface, which includes #[]?.
Refactor rescuing
KeyError
andIndexError
to use nilable index accessor instead.This is a breaking change for
resolve_with_hash_accessor
if the backing implementation only respond to#[]
and not#[]?
. But per documenation, backing implementations are expected to expose a hash-like interface, which includes#[]?
./cc https://github.com/crystal-lang/crystal/issues/11565#issuecomment-1003040007