Re: Introducing "Array Of" RFC

From: Date: Fri, 17 Jan 2014 08:00:24 +0000
Subject: Re: Introducing "Array Of" RFC
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
What I find interesting is that the title of the RFC is "Array Of",
proposing a type hint for an "array of Foo". In my opinion the proposed
syntax however reads more as "Foos in an array"?

Foo[] => Foo in/as an array
array<Foo> => array of Foo

I personally like the idea of array<Foo> because it seems to leave more
room for improvements and additions over time (nesting array<array<Foo>>,
k/v typehints array<Foo, Bar>).

Best,
Alexander


Thread (73 messages)

« previous php.internals (#71202) next »