xp-framework/rfc — Issue #10: Array syntax change in annotations
Author: thekid
Created: 2011-10-16 09:42:36+00:00
State: open
Labels: framework

Scope of Change
==
Annotation syntax will be changed to use array shorthand notation (`[]`) instead of `array()`.

Rationale
==
Originally motivated by [Support array shorthand as annotation value](xp-framework/xp-framework#66).

Functionality
==
First, we will add support for the shorthand notation and will deprecate the `array` syntax at the same time with a **Head up** notice in the `ChangeLog`. In the 5.9.0-release, the deprecated functionality will be removed.

Old
---
```php

```

New
---
```php

```

Security considerations
==
n/a

Speed impact
==
Faster once deprecated `array` syntax is removed.

Dependencies
==
n/a

Related documents
==
n/a