Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85414 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 1706 invoked from network); 22 Mar 2015 19:42:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Mar 2015 19:42:41 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.50 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.220.50 mail-pa0-f50.google.com Received: from [209.85.220.50] ([209.85.220.50:34941] helo=mail-pa0-f50.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C1/10-34365-03B1F055 for ; Sun, 22 Mar 2015 14:42:41 -0500 Received: by pagj4 with SMTP id j4so77337640pag.2 for ; Sun, 22 Mar 2015 12:42:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=gvK3rlTuTMzBpAnRBljb4zkhNBmEnM94VGq7SjzWW7s=; b=H+mlFg3Yhb44KjjFawZrLAVIxpX2J/Hn/vSjrRFullkStnlMoSb63JupAlzZMudRdT a+rynBmPIGh3l2vQx5/dPMXrIl+2VNERycMX8eHPB+GjAU+kPvDGtNz6KjjvH4a+rtLn IRcu7UHKXTCYzIZNE3pQTKGlWn1XAXkzV93OvtH7JEalb1+rLkxYeaOR0E7dKWjRqzEt O0hmXa2tqB5QTcb8UctgSRgZYA/AWd5QuADUKVztJLnBwU94467+Y2iERs0yeQslRa0o c1gyrgrUx6NGd8zU5EAQujLUEnoIQhY56B6P/hoTyp1ZmghyNTCK2Q3jgcNhqMh4p9iG RvzQ== X-Received: by 10.70.41.71 with SMTP id d7mr188091424pdl.44.1427053357854; Sun, 22 Mar 2015 12:42:37 -0700 (PDT) Received: from Stas-Air.local (108-66-6-48.lightspeed.sntcca.sbcglobal.net. [108.66.6.48]) by mx.google.com with ESMTPSA id fm3sm14632839pdb.73.2015.03.22.12.42.36 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Mar 2015 12:42:37 -0700 (PDT) Message-ID: <550F1B2C.9070607@gmail.com> Date: Sun, 22 Mar 2015 12:42:36 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Nathan wesley , internals@lists.php.net References: In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: =?UTF-8?B?UmU6IFtQSFAtREVWXSBUZW4geWVhcnMgZXN0aW1hdGVkIFBsYW4gdG8=?= =?UTF-8?B?IHJlcGxhY2UgUEhQ4oCZcyBpbmNvbnNpc3RlbnQgQVBJ?= From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > This makes an opportunity to replace the old API with object oriented one > preventing any kind of BC break. > > But instead of using this as an extension because of some limitations like > “string”->startsWith(‘s’); the API should be bundled with the engine (not > written in PHP). This is the problem with all these proposals. Instead of taking the gradual road of making a beautiful API in extension, having it accepted (I'm taking the optimistic scenario), popular and then merged into the engine, it's always "let's redo the whole engine from scratch". That's why these things haven't gone beyond talk for years. > This will make the opportunity to also remove any inconsistencies in the > API behavior as well. You write "remove inconsistencies", I read "break all existing code". > I’ve seen many articles encouraging new comers to learn languages like > Python or Ruby, and highly discourage them from using PHP. Also many new > projects are using languages different than PHP. (don’t tell me you haven’t > seen this) I've seen a lot of silly stuff on the Internet, so what? It's a free medium, anyone can write anything. That doesn't mean it carries any weight by the fact of writing. > The old API should be deprecated in PHP 8.0 and removed completely in PHP > 9.0 (finally) Which means no code written in PHP would work in PHP 9.0. Why then call it PHP? Call it something else. BTW, if you look at Java, some methods deprecated in Java 2 are still around in Java 8. Java didn't die from it. Why people are so zealous to break things that work? -- Stas Malyshev smalyshev@gmail.com