Re: [PHP-DEV] Re: Annotations Request

2008-08-25 Thread Antony Dovgal

On 25.08.2008 16:24, Volodymyr Iatsyshyn wrote:

So is there a chance to have these?


Volodymyr, there is very little sense in such questions.

If you really think feature XXX is that useful - care to demonstrate it's 
usefulness to others, "promote" it so that people start liking the idea of having it.
If you don't think you can manage writing the patch yourself, by promoting 
this feature you can find a person amongst the people who could do it for you.


In any case, the process of getting any feature implemented in PHP does not finish 
after someone says "ok, let's add it", in most cases there is a lot of work 
to be done, and writing a very detailed RFC in the Wiki would be very good start.


Also (I have to say it..) we do accept patches.

--
Wbr, 
Antony Dovgal


--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DEV] Re: Annotations Request

2008-08-25 Thread Volodymyr Iatsyshyn

Volodymyr Iatsyshyn wrote:

Hi,

Is there a chance to have annotations like in Java or like .NET attributes?

Now, I use Java Annotations emulation, through Reflections and PHPDoc 
blocks. Example:


/** Annotation One*/
class DemoAnnotation1 extends C01t_Annotation
{
public $value;
}

/** Annotation Two*/
class DemoAnnotation2 extends C01t_Annotation
{
public $p1;
public $p2;
}

class DemoClass
{
const SOME_CONST = 5;

/** @DemoAnnotation1(DemoClass::SOME_CONST + 1) */
public $property1;

/** @DemoAnnotation2(p1 => 1, p2 => 'Hello, Word!') */
public $property2;
}

Thanks,
  Volodymyr Iatsyshyn


So is there a chance to have these?

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DEV] Re: Annotations Request

2008-08-21 Thread Volodymyr Iatsyshyn

Lupus Michaelis wrote:

Volodymyr Iatsyshyn a écrit :

Now, I use Java Annotations emulation, through Reflections and PHPDoc 
blocks. Example:


  Can you provide an URL that explain what is annotation ?
Your examples don't help me, so I guess I'm not alone.



http://java.sun.com/j2se/1.5.0/docs/guide/language/annotations.html

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DEV] Re: Annotations Request

2008-08-20 Thread Lupus Michaelis

Volodymyr Iatsyshyn a écrit :

Now, I use Java Annotations emulation, through Reflections and PHPDoc 
blocks. Example:


  Can you provide an URL that explain what is annotation ?
Your examples don't help me, so I guess I'm not alone.

--
Mickaël Wolff aka Lupus Michaelis
http://lupusmic.org

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php