Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64436 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 23581 invoked from network); 26 Dec 2012 14:29:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Dec 2012 14:29:12 -0000 Authentication-Results: pb1.pair.com header.from=g.b.yahav@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=g.b.yahav@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.53 as permitted sender) X-PHP-List-Original-Sender: g.b.yahav@gmail.com X-Host-Fingerprint: 209.85.219.53 mail-oa0-f53.google.com Received: from [209.85.219.53] ([209.85.219.53:54714] helo=mail-oa0-f53.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 77/A1-07178-7B90BD05 for ; Wed, 26 Dec 2012 09:29:12 -0500 Received: by mail-oa0-f53.google.com with SMTP id j6so7903334oag.40 for ; Wed, 26 Dec 2012 06:29:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=SnwNWfxSwLI7mF95aEFCA1qsdH//v6q0Q/ny9dulMNs=; b=B2tE7gE/phyln2dMjcCsWP7NDCNiYMoA3OhOI+KD4uMzZGCkjsYpB36+uV9WJrS8Rj TtYywDmwK/uiLFFAEIiXjxlC218nhCLXdhKp6lxIyTjQq70E2qUOmY/rApdlG+oXYox0 jM2JIdgp2vV83d5ZGKUWoRUklm0fqvP+tM6BZXibvaPVal13e2Y5NiYnN7X0qVzKCFSa 1vlVv0Q1gzeqDXIi2xxcA7svydBjk8fp3BdRQD0tqWYS68FktRYdWrrzyyc/FVNyPsAf 2EGqKR+RFrlwjNUuEf9m9vD0nYnH9t1YuKrwWGV0c7c0qoUv6sw3foANk25ji+p026rr rang== Received: by 10.60.172.229 with SMTP id bf5mr10281451oec.81.1356532148620; Wed, 26 Dec 2012 06:29:08 -0800 (PST) MIME-Version: 1.0 Received: by 10.76.151.4 with HTTP; Wed, 26 Dec 2012 06:28:48 -0800 (PST) In-Reply-To: <8D.41.07178.7380BD05@pb1.pair.com> References: <8D.41.07178.7380BD05@pb1.pair.com> Date: Wed, 26 Dec 2012 16:28:48 +0200 Message-ID: To: Yussuf Khalil Cc: PHP internals Content-Type: multipart/alternative; boundary=bcaec54ee86cd84c1904d1c24048 Subject: Re: [PHP-DEV] RFC: Add a deprecated modifier for functions From: g.b.yahav@gmail.com (Yahav Gindi Bar) --bcaec54ee86cd84c1904d1c24048 Content-Type: text/plain; charset=ISO-8859-1 On Wed, Dec 26, 2012 at 4:22 PM, Yussuf Khalil wrote: > Hello, > > I have created an RFC about adding a deprecated modifier for functions in > PHP, see https://wiki.php.net/rfc/**deprecated-modifier. > What are your thoughts on this? > > Thank you, > Yussuf Khalil > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > Hi! I think the idea of marking functions as deprecated is great and the current way of throwing E_DEPRECATED error by trigger_error can be improved. In the current state. That's being said, I don't think that adding a deprecated keyword is the solution, since now we can write documentation and set a "@deprecated" mark. I think, that the best solution is the attributes concept that was rejected before and should be re-considered after the last releases changes and language improvements. A few built in attributes, such as can be great. What do you think? --bcaec54ee86cd84c1904d1c24048--