[Flow] [RFC] CGL: Allow "ArrayElementType[]" syntax

Christian Müller christian.mueller at typo3.org
Fri Feb 6 08:43:08 CET 2015


Hi there,

On 2015-02-05 10:31:46 +0000, Bastian Waidelich said:

> Hi all,
> 
> what do you think about allowing (= add to our CGL) the following 
> syntax for "generic" arrays:
> 
> /**
>   * @var User[]
>   **/
> protected $users;

I am currently against doing that, for the following reaons:

- We need to use development resources to adapt Flow to understand this 
format (Reflection, PropertyMapping etc.)
- We don't have a good solution for Collection types, so they would 
most probably end up with a different syntax
- IMHO it's syntactically crappy to read ("User in Array" vs. "Array of User")

Cheers,
Christian

-- 
Christian Müller
Flow / Neos Team Community Contact

TYPO3 .... inspiring people to share!
Get involved: http://typo3.org



More information about the Flow mailing list