Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:92752 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84654 invoked from network); 25 Apr 2016 19:24:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Apr 2016 19:24:22 -0000 Authentication-Results: pb1.pair.com smtp.mail=rasmus@mindplay.dk; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=rasmus@mindplay.dk; sender-id=unknown Received-SPF: error (pb1.pair.com: domain mindplay.dk from 209.85.218.42 cause and error) X-PHP-List-Original-Sender: rasmus@mindplay.dk X-Host-Fingerprint: 209.85.218.42 mail-oi0-f42.google.com Received: from [209.85.218.42] ([209.85.218.42:34013] helo=mail-oi0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8B/33-02401-4EE6E175 for ; Mon, 25 Apr 2016 15:24:21 -0400 Received: by mail-oi0-f42.google.com with SMTP id k142so187326972oib.1 for ; Mon, 25 Apr 2016 12:24:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mindplay-dk.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=6lFYryNQIRvhER6dHwJ7YLaTuCQ6AiXPibIT+XA96MQ=; b=I9LsIPWfVBUXpRo5T0ri0/8bAap0DPauB74JwmVyeIXDKuA1rrX6+0ppauNFgMrWAP dvX+MYtHCZskOlt6j26t4QE+2tsWIL4z3WVHgaXgR2eYWJSjD4HfqhLPCiHCLnFdeIPC TOwpOf7B8p8/BpLItZ942fpN5siluffdnKCe/cBwrYKiIvmOshr2dljrp51ief0JZQIX NvZ1oYFFc7XD5cU/C4RiH5H64nedV2+Kov923wuQYqr2oB/Nvi2pUOR4s7pLpXpTbxeZ V9dO/lF36Mn4/vWHBQmGLXB8WscSXF855NOgKPGt661wastD/TPGUl+bjScRnJeNWqFs VbFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=6lFYryNQIRvhER6dHwJ7YLaTuCQ6AiXPibIT+XA96MQ=; b=YxDJU73/I/7M92BTlOnB78OxNMq3wcgdkAob9j/o1wr9G9FP068YkOrhjXUO+k6qqV 68muyWgRM13KXuYRz5vanxIHDhhkQNep5gh5lMgPAcllLVep7/uJTWlGJGyvCBixMTit pa1y8KIYyeLwx3aeEJAoSMDuzEaogWv4Ojn9fcUnFP12GY6lSfqfIGl77Od1ikTbgGxd RhX9hWyqxslymXxdSewkAMt4DDnPkRd85grV4FOY3Nop4IY1NJ8KJAVuxq2D9dkG4JmB 3anP++7U54D6RcPiAW3OcrY7ndS45e+EIm1EujCsBXJnCy5hBVYNKgTu2EGZ44G+bCFK rzuQ== X-Gm-Message-State: AOPr4FX9CUdH7ovPugNjXF5017grZLHp/pPqOs+gEn8rszLeF7As/jWWFQsO4Vm3qLj3B8gJX5g4X/KCDHOasA== MIME-Version: 1.0 X-Received: by 10.157.35.77 with SMTP id k13mr10204346otd.50.1461612258173; Mon, 25 Apr 2016 12:24:18 -0700 (PDT) Received: by 10.157.37.120 with HTTP; Mon, 25 Apr 2016 12:24:17 -0700 (PDT) In-Reply-To: <571E64A2.2040505@gmail.com> References: <571965D1.9020102@zend.com> <5719CDB2.90103@zend.com> <571DCA6A.2070803@zend.com> <571E35D8.8080504@zend.com> <571E4A83.3080304@garfieldtech.com> <571E64A2.2040505@gmail.com> Date: Mon, 25 Apr 2016 21:24:17 +0200 Message-ID: To: Stanislav Malyshev Cc: Larry Garfield , PHP internals Content-Type: multipart/alternative; boundary=001a113d9b5072dbab0531541fc8 Subject: Re: [PHP-DEV] [RFC] PHP Attributes From: rasmus@mindplay.dk (Rasmus Schultz) --001a113d9b5072dbab0531541fc8 Content-Type: text/plain; charset=UTF-8 Check here to see what we did for php-annotations: https://github.com/php-annotations/php-annotations/blob/master/docs/CustomAnnotations.rst#usageannotation It's somewhat similar to how C# does it, and it has worked quite nicely. On Mon, Apr 25, 2016 at 8:40 PM, Stanislav Malyshev wrote: > Hi! > > > a class/property/method that has annotations, it NOT inherit > > annotations/attributes by default. However, by adding an annotation of > > > > <<__inherit>> > > > > (Or some other internal-reserved keyword, I don't have strong feelings > > on what it is) then the engine will automatically give you all the > > annotations off of the parent, and union them with whatever additional > > ones you add. > > Then it makes no sense to ban repeating annotations - because that's > what we effectively are doing here. Also, this assumes all annotations > are either of inheritable kind or not, and these two categories can > never be combined. > > -- > Stas Malyshev > smalyshev@gmail.com > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --001a113d9b5072dbab0531541fc8--