Re: Typed array properties V2
| From: | Benjamin Morel | Date: | Tue, 21 Jan 2020 22:15:52 +0000 |
| Subject: | Re: Typed array properties V2 | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-108210@lists.php.net to get a copy of this message | ||
>
> What if we left the array type alone, and instead focussed on "list<Foo>"
> type and "dict<string, Foo>", "dict<int, Bar>" types?
> That would allow a clear break from previous behaviour, and would allow you
> to introduce other changes (e.g. removing string -> int coercion for
> numeric string keys).
Can't agree more.
— Benjamin