On Mon, May 27, 2024 at 14:21 Alexandru Pătrănescu
wrote:
>
> On Mon, May 27, 2024 at 7:16 AM Valentin Udaltsov <
> udaltsov.valen...@gmail.com> wrote:
>
>> Hello, internals!
>>
>> Here's the idea: let's extract `ArrayAccess::offsetExists` and
>> `ArrayAccess::offsetGet` methods into a separate `
On Mon, May 27, 2024 at 7:16 AM Valentin Udaltsov <
udaltsov.valen...@gmail.com> wrote:
> Hello, internals!
>
> Here's the idea: let's extract `ArrayAccess::offsetExists` and
> `ArrayAccess::offsetGet` methods into a separate `ArrayAccessRead`
> interface (name can be different) and allow read ope
Hello, internals!
Recently I was implementing some collections and realized that I cannot use
`ArrayAccess` for immutable collections without throwing
`BadMethodCallException` in `offsetSet` and `offsetUnset`. I also cannot
have an `interface ReadonlyCollection extends ArrayAccess`, because
`offse