Re: Re: Attributes support proposal

From: Date: Mon, 25 Apr 2005 15:06:01 +0000
Subject: Re: Re: Attributes support proposal
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-16076@lists.php.net to get a copy of this message
> http://www.calligram.co.uk/oss/Attributes Whew Duncan! That's *VERY* nice. Anyways... Annotations (structured comments) vs. Attributes? Here's my take: Since annotations are comments, you can remove them without modifying behavior. However, attributes are actually *needed* since they are part of the code. If you remove the attributes, you're changing behavior. phpDoc comments are... comments! You can remove all comments in your code and your script will run just as well when they did have comments. So, IMHO, attributes != annotations. They're two different beasts, for different purposes. -- Hendy Irawan http://www.gauldong.net http://dev.gauldong.net

« previous php.internals (#16076) next »