Re: [PHP-DEV] - True Annotations

2013-01-09 Thread Vladislav Veselinov
> be anything that could generate a suppressible error. Not true: @ORM\Column() class Test() { } What if there's a function in the ORM namespace called Column. Is this a supressed error of a function call and we've missed the ";" or is it an annotation? -- PHP Internals - PHP Runtime Developm

Re: [PHP-DEV] [RFC] Reflection annotations reader

2013-01-09 Thread Vladislav Veselinov
Taken from the Doctrine documentation: wrote: > On Tue, 8 Jan 2013, Pierrick Charron wrote: > >> On 8 January 2013 03:55, Stas Malyshev wrote: >> >> > On the contrary, plenty of implementations means there's a need in >> > this functionality, and it might be a good idea to have one standard >> >

[PHP-DEV] Re: Reflection annotations reader

2013-01-08 Thread Vladislav Veselinov
Exactly. Annotations just don't belong there. Short syntax for arrays got shut a few times but it finally made it to core. I hope native support will be revisited at some point. On Tuesday, January 8, 2013, Pierre Joye wrote: > hi Stas, > > On Tue, Jan 8, 2013 at 7:28 PM, Stas Malyshev > > > wro

Re: [PHP-DEV] [RFC] Reflection annotations reader

2013-01-07 Thread Vladislav Veselinov
This is what I was going for. Your idea looks better. On Mon, Jan 7, 2013 at 4:45 PM, Anthony Ferrara wrote: > Yahav and all, > > > On Sun, Jan 6, 2013 at 4:58 PM, Yahav Gindi Bar wrote: > >> Hi internals! >> >> In one of the discussions (about the "deprecated" keyword, to be specific), >> it wa

[PHP-DEV] Re: Reflection annotations reader

2013-01-07 Thread Vladislav Veselinov
Hey everybody, I've been following this list for a while (1-2 years) and this is the first message I'm sending. In my oppinion, annotations in docblocks are a bit(a lot) hacky and making it even worse by adding them to core is not the best idea. This is how I think annotations have to look like i