On Sun, Jan 6, 2013 at 10:05 AM, Patrick Schaaf <p...@bof.de> wrote:

> Was it considered to augment type hinting syntax - both in parameter lists
> and for the hinted property RFC - to permit giving multiple types at once?
>
> public DateTime|DateTimeImmutable $refdate;
> public Foo|NULL $object; // the issue discussed in the previous msgs
> function bar(array|string $arg) ...
>
> best regards
>   Patrick
>

That's an interesting idea (at least something worth discussion), but
please in a different thread. Same goes to the initializers that were
mentioned previously in this thread. Both things are related to this
proposal, but only slightly, and should be discussed separately to keep
things clean. Thanks :)

Nikita

Reply via email to