xp-framework/xp-framework — Issue #66: Support array shorthand as annotation value
Author: thekid
Created: 2011-10-09 09:11:08+00:00
State: open

One thing broken by the [new annotation parser implementation](https://gist.github.com/1240769/d8d320aedb5ace0f37d3cc08c15dde0a05740ab1) spawned from pull #56 are annotations like this:

```
#[@xmlmapping('hw_server', 'server')]
```

These were never officially supported - see [RFC #0016](http://developer.xp-framework.net/xml/rfc/view?0016) for the syntax definitions - but have rather worked "by accident".

The XP developer mailing list is discussing how to deal with this currently - one proposal is to add support for the following:

```
#[@xmlmapping(['hw_server', 'server'])]
```

...so basically supporting short array syntax; which was also part of this original pull request. The "accidental feature" would be dropped in favor of this and a note would be added to the *ChangeLog*.