Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:101069 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36231 invoked from network); 6 Nov 2017 01:18:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Nov 2017 01:18:28 -0000 Authentication-Results: pb1.pair.com header.from=tendoaki@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tendoaki@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.174 as permitted sender) X-PHP-List-Original-Sender: tendoaki@gmail.com X-Host-Fingerprint: 209.85.161.174 mail-yw0-f174.google.com Received: from [209.85.161.174] ([209.85.161.174:49891] helo=mail-yw0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8B/D8-09857-168BFF95 for ; Sun, 05 Nov 2017 20:18:26 -0500 Received: by mail-yw0-f174.google.com with SMTP id z195so6613404ywz.6 for ; Sun, 05 Nov 2017 17:18:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=Utm5Px4yMHwbphvnd2TmcTZ6qXcMdncqI3QVt73brOU=; b=l1ov5CFTwbd/VZEP9YSAPA0RfkMjrHV+JiTuU5PTtXtreNYTH53ed5/1bV04EcgeJ2 YdKJmM0RmCh+lJ40px73ca9GTGf94C4/Fi8wtPVzXmBebu9Au4Flujch27/nKcss26Uf rApfFLMwXFPmDlJubIJN1CJPvk7Mv0gzO0pXaRJisELmeys7rDCfHcI97lmEpvMDEqa3 Eb7qLMCAQt/j7NJj4rNck7V/w8EAUsz3/oB3Xk9Ws00EMkI0LTcqXlci9N4DodIjObM8 XbKqDE+BJ2Lau/ncACxBeuo+y3AOY/lEFrw6zkAqamWP/sQOT4aIzKT75I1TqCKqE7Gr 0o2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=Utm5Px4yMHwbphvnd2TmcTZ6qXcMdncqI3QVt73brOU=; b=U6zZGVTR+8rCWQ0Eg3qCrChy2mep+0x0aBxsHNy1Hrh1Xm6gyj0WaPmTJrgLYf4hcB G4cXBLyA5vglvK9OekDjY9rm9uZkRzwxyC2Sw2D/FKFexf7yfXUj09X01bX3sXKwTbjP A+mExRQkW/OULSQYj1vLc7hH/6fCPEAJe/MJ0bCxT3zUwcJIvmBoBDkSyWEXStaByfgo mFLelzTV8qTo+EJygV/X3//12pvWCsGMWgKo8+65P6uDJ/kD5JrCmdWWlYkXUSjEUn+l et78V3vxCfHBuCbszqp/74YjCCSyHvpDQnNqMHNunzCtCN+JF0DLRDKbqShcdiZBf9eg 0cuQ== X-Gm-Message-State: AJaThX7pES3ZhUnfXmyjg+z6o5Y/9kjE0OTIwMv0Ido1O0yu4Ay/jedD od0kCqNyMwV6dTqd+NaC/VdUeSoeW9Eh95ZJqH8= X-Google-Smtp-Source: ABhQp+RTrQG3HO6qhwQJOjnHsgn3H/t2X+LxUcwnZy7NxhDhhF+Q1R1vXdHUs+S3Jo2VRtzbSYlsC9+OQ8s36aq7Fpg= X-Received: by 10.37.129.12 with SMTP id o12mr7342059ybk.410.1509931102513; Sun, 05 Nov 2017 17:18:22 -0800 (PST) MIME-Version: 1.0 Received: by 10.37.139.141 with HTTP; Sun, 5 Nov 2017 17:18:22 -0800 (PST) In-Reply-To: <1509917800.22186.15.camel@schlueters.de> References: <9331841e-ea9a-652b-3b54-5dc24dbd273b@gmail.com> <1509917800.22186.15.camel@schlueters.de> Date: Sun, 5 Nov 2017 20:18:22 -0500 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary="089e0826ed18002eb8055d463bba" Subject: Re: [PHP-DEV] Proposal: Rename image functions From: tendoaki@gmail.com (Michael Morris) --089e0826ed18002eb8055d463bba Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable No. Hell no. The last thing PHP needs is an ill thought out string of function name changes to further pollute the global name space. Further, merely changing the names isn't going to do anything. What would help is a massive clean and redo for PHP 8 in the same vein as Actionscript 2 to 3 had a massive cleanup. Namespaces give us the means to do it along with the import keyword - but it would be painful to write the code and I don't think anyone is willing to do it. The strategy would be to put all existing global namespace functions into a new namespace: PHP\Legacy Then add an import keyword. Similar to use, import pulls the designated namespace into the current namespace. Then, for backward compatibility, add a php.ini setting that runs "import PHP\Legacy" at the start of each script. Then create the new functions, separated and organized by namespace. For example. PHP\String\split. And while doing this, decide once and for all whether it's haystack, needle or needle, haystack damn it. On Sun, Nov 5, 2017 at 4:36 PM, Johannes Schl=C3=BCter wrote: > On So, 2017-11-05 at 14:51 +0100, Peter Kokot wrote: > > Hello all, > > > > correct me if I'm wrong, but wouldn't be a good practice to follow > > the > > currently set coding standards? > > https://github.com/php/php-src/blob/master/CODING_STANDARDS > > > That is good for new code. But breaking 20 years of history for only > that reason is questionable. > > johannes > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --089e0826ed18002eb8055d463bba--