Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93386 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 34650 invoked from network); 17 May 2016 18:01:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 May 2016 18:01:32 -0000 Authentication-Results: pb1.pair.com header.from=php@fleshgrinder.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=php@fleshgrinder.com; spf=permerror; 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:60770] helo=mx202.easyname.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B6/24-11000-A7C5B375 for ; Tue, 17 May 2016 14:01:31 -0400 Received: from cable-81-173-133-15.netcologne.de ([81.173.133.15] 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 1b2jJ9-00066E-1L; Tue, 17 May 2016 18:01:27 +0000 Reply-To: internals@lists.php.net References: <61e6a083-91c2-799f-9757-02f56fe184e9@gmail.com> To: Rasmus Schultz , Rowan Collins Cc: PHP internals Message-ID: Date: Tue, 17 May 2016 20:01:16 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="jxA5eHNhILlB5L4CTe02j04p9XwsufJcR" X-ACL-Warn: X-DNSBL-BARRACUDACENTRAL Subject: Re: [PHP-DEV] [RFC] Simple Annotations From: php@fleshgrinder.com (Fleshgrinder) --jxA5eHNhILlB5L4CTe02j04p9XwsufJcR Content-Type: multipart/mixed; boundary="5F1Sqro4sXtk8naD2h8JjcnSwxNsg6W78" From: Fleshgrinder Reply-To: internals@lists.php.net To: Rasmus Schultz , Rowan Collins Cc: PHP internals Message-ID: Subject: Re: [PHP-DEV] [RFC] Simple Annotations References: <61e6a083-91c2-799f-9757-02f56fe184e9@gmail.com> In-Reply-To: --5F1Sqro4sXtk8naD2h8JjcnSwxNsg6W78 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 5/17/2016 7:47 PM, Rasmus Schultz wrote: > You're not annotating the function - this is just a round-about way of > annotating the argument. >=20 > You would do that directly, like this: >=20 > function foo( > << ValidateRange(0, 100) >> > int $percentage > ) { ... } >=20 What is this good for? When is /ValidateRange/ being evaluated? On every call? How? I really do not get it, sorry. --=20 Richard "Fleshgrinder" Fussenegger --5F1Sqro4sXtk8naD2h8JjcnSwxNsg6W78-- --jxA5eHNhILlB5L4CTe02j04p9XwsufJcR 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 iQIcBAEBCAAGBQJXO1xxAAoJEOKkKcqFPVVrqVEP/A8mpwuh5uqPaWJ8f09um5x0 SPsr3MRBwZBGudcjgYmelbpk9ADkGLusKQQ0gCvAq++iSnI8J77NAoqk0smpLTJv DPVM5KS7DL3kdQrGitSdxgulSsew1vqQPKtCdy5Z4+4Ydmv07p59u4/2eEYGXM67 ycQlXkvoUmDMeAVpYVPJraqAE44y3gpv+QNzs8RyaD0RTXLvty5px+ZD3GY90r7G Y4vnuvUBoDLxnxJgoxnbP27K2dcHyOHfYnsXmvben2m49odhiVN6wK5CoJwi8YVV /Fzb0Td2i5nv7aUAnH3AGv+/U+rkje3N1qis/bZO30aGJOy0AfOlB0SBXc4RYU2C IhtlPDDYjy/I4yLxf9pxfLQJvyx9nUfPHSgcsk61rDb6OBUl8jZ2XkcUeCHupBcP LtOOa6QSn/Yg38QXpbHlME2SpdzB4UbuiEQVtUZclT16VLado9rpjM5T0KmraYTJ eyjzClt8Xw+xirC38NpzhVV/yPixuyD5+oD1b+evRpleOaMLaIgkpN1l1Xgok3Cx 8Nf8HGQWEXqu8chaUDRT+G8gLWYUxC6PF1nPPYOv9uQg2cYHVJZodXai0To/ZWKF YIP3TXISGcb8XRwfSLADCpf/T0mwBhCYk4QGB/QqWowIqdejGC5fnFS0A+AuEB52 EQA412mQQPngVvuOKBRf =ODcQ -----END PGP SIGNATURE----- --jxA5eHNhILlB5L4CTe02j04p9XwsufJcR--