Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:92757 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92408 invoked from network); 25 Apr 2016 20:20:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Apr 2016 20:20:48 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@fleshgrinder.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=php@fleshgrinder.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain fleshgrinder.com from 77.244.243.84 cause and error) X-PHP-List-Original-Sender: php@fleshgrinder.com X-Host-Fingerprint: 77.244.243.84 mx103.easyname.com Received: from [77.244.243.84] ([77.244.243.84:47596] helo=mx202.easyname.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 60/B4-02401-E1C7E175 for ; Mon, 25 Apr 2016 16:20:47 -0400 Received: from cable-81-173-133-226.netcologne.de ([81.173.133.226] helo=[192.168.178.20]) by mx.easyname.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1aumzr-0005lN-1z; Mon, 25 Apr 2016 20:20:43 +0000 Reply-To: internals@lists.php.net References: <571DD94B.3060604@zend.com> <571E63D0.8080800@gmail.com> <9c24f969-cb0e-cb46-a23c-6e06e7de7d79@gmail.com> To: Rowan Collins , internals@lists.php.net, "smalyshev@gmail.com >> Stanislav Malyshev" , "dmitry@zend.com >> Dmitry Stogov" Message-ID: <571E7C10.6080408@fleshgrinder.com> Date: Mon, 25 Apr 2016 22:20:32 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: <9c24f969-cb0e-cb46-a23c-6e06e7de7d79@gmail.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="xIlRC4vku53n65uq3Bdwi3FKUMmRm5pnM" X-ACL-Warn: X-DNSBL-BARRACUDACENTRAL Subject: Re: [PHP-DEV] [RFC] PHP Attributes From: php@fleshgrinder.com (Fleshgrinder) --xIlRC4vku53n65uq3Bdwi3FKUMmRm5pnM Content-Type: multipart/mixed; boundary="VgoLKTKPeuGPa8CbaEtbiU1xNS8e7Tirq" From: Fleshgrinder Reply-To: internals@lists.php.net To: Rowan Collins , internals@lists.php.net, "smalyshev@gmail.com >> Stanislav Malyshev" , "dmitry@zend.com >> Dmitry Stogov" Message-ID: <571E7C10.6080408@fleshgrinder.com> Subject: Re: [PHP-DEV] [RFC] PHP Attributes References: <571DD94B.3060604@zend.com> <571E63D0.8080800@gmail.com> <9c24f969-cb0e-cb46-a23c-6e06e7de7d79@gmail.com> In-Reply-To: <9c24f969-cb0e-cb46-a23c-6e06e7de7d79@gmail.com> --VgoLKTKPeuGPa8CbaEtbiU1xNS8e7Tirq Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 4/25/2016 10:04 PM, Rowan Collins wrote: > On 25/04/2016 19:37, Stanislav Malyshev wrote: >> Hi! >> >>> @attr() - is a valid "silenced" call to function named "attr". >>> This syntax can't be reused. >> Not valid if it's in the middle of class definition, and not valid in >> form of: >> >> @attr() function foo() { ... } >> >> This is not a valid PHP syntax now. So I'm not sure why it can't be >> used. << is an operator too and so is >> . >> >=20 > No, but this is valid: >=20 > @atrr(); function foo() { ... } >=20 > That's perhaps a little too close for comfort...? >=20 > Regards, >=20 Actually I agree with Stanislav (in pretty much every point he made so far) on the syntax discussion, however, I already said that the brackets are the main problem and it seems as it nobody sees it but your example illustrates it perfectly. @fopen('file', 'r'); function foo(){} @deprecated function foo(){} @throws InvalidArgumentException function foo(){} @route ['name' =3D> 'foo'] function foo(){} Leaving out the brackets makes it very clear. I am in an extreme rush and will read more in the thread the next days, sorry. --=20 Richard "Fleshgrinder" Fussenegger --VgoLKTKPeuGPa8CbaEtbiU1xNS8e7Tirq-- --xIlRC4vku53n65uq3Bdwi3FKUMmRm5pnM Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXHnwWAAoJEOKkKcqFPVVrTywP/3UfkekQywLN+HxFRBXIzUvY QrdFsqgjv6H+eecchnIVQdv+/XRVKTPtIVHT+EG7/2lLL1dwk/uaAf654NDYyEuH NCWCBOt+jklmLkhIQkTeq0uWFN9ARzgSkXvOoSWJ1x0W02SK7yIR6mHW9RHyMQCN ydcy496yP15zFAYDTX45uxyxvfneHyLTg7SbAxjIBQXvq4VLRr7IG36xZIIw3sdk cbsupv6Y89M2zxWbDLrUSFJ0L3b1J1up52SDysjACwFVvBQwWNDQbgBd690XLN70 NAm+RRB6qfgdefRYtzR4/PtUJ48i00wODb5xlGiOpqkV1hPqOK4AFmDhcYpNax7C EJD6dJ0RGVIssjmtWhP6+wVJ3JFNaYOY8di+MH9o87n+w3yzmNY2YtDffOG1c+3G xmGpTvo9YEH3Fdp8lm/h/rb876mNzxR+scQ/cD/2izner8z/UXQiJN5WP1a0OkE3 75oA584xZLfXayh8x/76HcVZxRU4cDv3cIPuLJhVZd3zYAxMzNSUra6DpCWUVtf+ 2RjlynOlifrG2CPJUttXrXaTd9TBZ8k82UTBJQlnuApqfLNYILFKzGndWJBnQGj5 57uWyYYWXvp/EuBuSaxmX4g0AqMdA9FluzznAo9nK/PlNxQDlVd0x07zCZBBb2gl rnhpH7BAq0B3nwBMXyGi =1QBY -----END PGP SIGNATURE----- --xIlRC4vku53n65uq3Bdwi3FKUMmRm5pnM--