Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64684 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27685 invoked from network); 8 Jan 2013 13:38:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Jan 2013 13:38:45 -0000 Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.53 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.215.53 mail-la0-f53.google.com Received: from [209.85.215.53] ([209.85.215.53:62349] helo=mail-la0-f53.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AE/78-16636-3612CE05 for ; Tue, 08 Jan 2013 08:38:45 -0500 Received: by mail-la0-f53.google.com with SMTP id fn20so454490lab.12 for ; Tue, 08 Jan 2013 05:38:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=5XoFl68+io0J+ZSCIHRWSKBuTuRkYKQZRhOVjyHPCXg=; b=sHn4qA0XdEW7lVIH2+kgWpA5PGEJPiiy91uQvEgIkkPMDPY2SD0Intg+NDGPPm/Ywe g1VHyXNUmugJYoXBjgJpDcfGsuOn4T3UExgfZNsZxVdoSMICDV89g/TypWmmSU3RY4Qh L0J0Xs5P5DX8Y5BJdbpLWmP+/UsBGJxM9htrzTQHECmDSmyax8ucui8VYqqFRObUZ/rd y5Cg6WJvODALKySpqYXxT1h5978dT7C6jFMe3d67wsRow9mbbOatEwdLd6ihsHHY7GzD V2zkEZOkTpQuUYkMMXwtx80LgobX+TvZpGPZyu6ypd9rThHUuk5QT0837Ba8uF+EmHmX o/CA== MIME-Version: 1.0 Received: by 10.112.16.69 with SMTP id e5mr26567107lbd.43.1357652320651; Tue, 08 Jan 2013 05:38:40 -0800 (PST) Received: by 10.112.4.168 with HTTP; Tue, 8 Jan 2013 05:38:40 -0800 (PST) In-Reply-To: <50EBE431.8090607@sugarcrm.com> References: <50EBE431.8090607@sugarcrm.com> Date: Tue, 8 Jan 2013 14:38:40 +0100 Message-ID: To: Stas Malyshev Cc: Anthony Ferrara , Yahav Gindi Bar , PHP internals Content-Type: multipart/alternative; boundary=f46d0401fb414d090404d2c7109f Subject: Re: [PHP-DEV] [RFC] Reflection annotations reader From: nikita.ppv@gmail.com (Nikita Popov) --f46d0401fb414d090404d2c7109f Content-Type: text/plain; charset=ISO-8859-1 On Tue, Jan 8, 2013 at 10:17 AM, Stas Malyshev wrote: > Hi! > > > Why does this need to be part of Reflection? Seems a rather odd place for > > it IMHO, since it basically hard-codes the functionality into part of the > > Reflection is an odd place for functionality that describes attributes > of classes, methods, properties, etc.? ITYM "natural place" - that's > exactly what Reflection does. > This functionality parses doccomments and doccomments can be obtained through various ways. Reflection is only one. Docblocks can just as well come from parsing the files. If this would be tightly bound to the reflection mechanisms then it would become useless for many applications, e.g. phpDocumentor et al couldn't use this (if I'm not much mistaken). Nikita --f46d0401fb414d090404d2c7109f--