Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:108961 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 79936 invoked from network); 10 Mar 2020 21:29:02 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 10 Mar 2020 21:29:02 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 739BC1804C6 for ; Tue, 10 Mar 2020 12:50:00 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 10 Mar 2020 12:49:58 -0700 (PDT) Received: by mail-wm1-f51.google.com with SMTP id x3so1532494wmj.1 for ; Tue, 10 Mar 2020 12:49:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beberlei-de.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ZDmKj3K25BLDoa3JmW6roBQTqj8paz/GYqZIpOej/gM=; b=UjKPXinwZyIoPs2+9sYPzVnIcwAF+nydTCeYX+KpFZDhEQxmf9Ze/83fwsljZFyqWx h9vnnmUurA4egxS0sNtXXkXbbXddrXzrAor/5+SXC2tBVeMCSPinXdRwQPG5JWnNpMe5 5XY8NvSRMfDfHWSJ9h6IMWBodRjFCIscLm9d6f9AOTjM39RiPRmFZqNgv7P/HiUbph+M lRc/ikgNcS++w/QZ1SW27HI0SuQllOolOA6lTSF6nQeZ95YA8Fjo5Wpee0l2eI5HfeXM dfwqjGqlBUiDHgAaxDh9hSVRD+gDThdkrEs0TC5wI/BUTwtjSGOeOceniynimdw9A2aP 6Zgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ZDmKj3K25BLDoa3JmW6roBQTqj8paz/GYqZIpOej/gM=; b=KbojcSkQSHNSV30Er9sWDuyh/eiZUoea7o+TIoFzmzPxNT7abndvlSbGr9hPYWIWg0 31ddviFUdLWfCfg0NFrr5c9Bc7fUDZhdZrqNkvUUmVVP0B5+c546tCwM+799iRAYNN5K YR7DdU8F5hm8EOGwtA8fbDvHE3a7i1P/bLSd20zyGDxs2lZsnso4EB5Ss4PKpavudIAD bojoJUdJJomwRFcAKTvIvxHwXBHSSyDA0Ct42nn20YpAIz4iHU6H/JAmRnmKGyVQyeOc PIjdd92Jl6Ks70OaZc6vqbNsQCaq22JW7osLh4ERwYjfUzOp9tjzNBa0x7cepUxgOghH TdzQ== X-Gm-Message-State: ANhLgQ0lh4ZMQF9O4b1c5Fx2XR/0hxDFfw8kAHlaH6crGOgV6LTZjMGC x1RT8hH83aWJlZtKxO3UPwRuq7izwoQedNabTxU7P6C9+jg= X-Google-Smtp-Source: ADFU+vuyc5/mTPcz3aYalEoDumB2IPd1lSzYM4VazI+ULm1HAKBM3f9nJSQgkM+cJBNFru8LheQ/ci2lTcyFbhxdoJ8= X-Received: by 2002:a7b:c0d7:: with SMTP id s23mr3905883wmh.168.1583869796213; Tue, 10 Mar 2020 12:49:56 -0700 (PDT) MIME-Version: 1.0 References: <2227A758-3035-4A43-974C-C4461A096DFB@newclarity.net> <854D29ED-C2EA-4201-87EB-CE561F630F37@newclarity.net> <6AE57DB5-62AE-4EFB-8AFE-F57DBF7CCF15@newclarity.net> In-Reply-To: <6AE57DB5-62AE-4EFB-8AFE-F57DBF7CCF15@newclarity.net> Date: Tue, 10 Mar 2020 20:49:44 +0100 Message-ID: To: Mike Schinkel Cc: Aleksander Machniak , PHP Internals Content-Type: multipart/alternative; boundary="00000000000092f8af05a0856c4e" Subject: Re: [PHP-DEV] [RFC] Attributes v2 From: kontakt@beberlei.de (Benjamin Eberlei) --00000000000092f8af05a0856c4e Content-Type: text/plain; charset="UTF-8" On Tue, Mar 10, 2020 at 5:30 PM Mike Schinkel wrote: > > On Mar 10, 2020, at 11:28 AM, Benjamin Eberlei > wrote: > > > > Just to make sure you don't run in circles in this discussion thread > here, even when syntax is not fixed yet, it's not going to be a syntax > where the attributes are suffixed after the declaration. It would maybe > some other characters like %[Attr]. > > > > It is your RFC so you are the arbiter. > > One final on syntax: Can I suggest you consider @:Attr? > > -Mike > P. S. Did you see the question on interfaces? > > No I missed it. Attributes work on interfaces, but they are not inherited to parent classes. This is similar to how a class implementing an interface may have different docblocks. You can use the reflection api to get to interfaces from a class and check for their attributes there. For traits the attributes get copied into the using class. --00000000000092f8af05a0856c4e--