RE: [PHP-DEV] [RFC] PHP Attributes

From: Date: Sun, 24 Apr 2016 11:00:18 +0000
Subject: RE: [PHP-DEV] [RFC] PHP Attributes
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-92681@lists.php.net to get a copy of this message
> -----Original Message----- > From: Sebastian Bergmann [mailto:sebastian@php.net] > Sent: Sunday, April 24, 2016 12:14 PM > To: internals@lists.php.net > Subject: Re: [PHP-DEV] [RFC] PHP Attributes > > On 04/21/2016 11:13 PM, Dmitry Stogov wrote: > > I would like to present an RFC proposing support for native annotation. > > Dmitry, > > please use "annotation" as the name for this feature and not "attribute". > > We already have attributes: it's what we use to store data in objects. And > while some people call them "member variables" or "properties" the correct > term for them (AFAIK) is "attribute". I don't think I've ever heard properties referred to as attributes in the context of PHP. The PHP manual defines them and refers to them throughout as 'properties'. (I'm not voicing an opinion on attributes vs. annotations; Just pointing out that data storage inside objects isn't named attributes). Zeev

« previous php.internals (#92681) next »