Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:103971 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 51141 invoked from network); 1 Feb 2019 13:31:06 -0000 Received: from unknown (HELO mail-it1-f175.google.com) (209.85.166.175) by pb1.pair.com with SMTP; 1 Feb 2019 13:31:06 -0000 Received: by mail-it1-f175.google.com with SMTP id z7so8366497iti.0 for ; Fri, 01 Feb 2019 02:11:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ROeMnOInsJ1E4m7UcObFCHK+tApDf5iiJwD2edUHXO8=; b=hXztHQyXYjBPImCWYgHB7XUeuTOttMj1a2pVe3BNsh6qzTV+83dVRJ4EfsfEoFfjNT 4Q6e2fM3IHlef3ANZlIrAIyCTfn/kVmreNamnqwdWg+ZcPTbaswjxYPjcC7G8uwx8J1g 3h3joTfKogvepuL0IAgvNHyuCh2gYmqC/lh8SapKjcs2F31i3EmJH1zqGthZzW+xOCeL FU8nDliH0h7S90hDwk1JMQen+VoGINyQATu/4Y3Syrco885lFeRLFDIEcI6pIhiX2gYb tQRsVxn1BMrhcqx+ouPfsbEjSfjDFPD2CKF+feWjuhn8NOuqO4jf4IxUjjWq3sRBFOJA 3rMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ROeMnOInsJ1E4m7UcObFCHK+tApDf5iiJwD2edUHXO8=; b=pstx355roqVwVzKBS3nKB6Utq4BEN+vzTS/RsdkaOCXJKLt2mbsSybBsrKOSE5rkgD 3NpYgqtVKbypJDZW6ZuU3NHqHWtjFZN7LPkUyvYQYupNqPKUauVv0K8dNkM6xSY/27VX zIFZpw66dItJYyk2AVO25EV1Mt6ERd8BeBSUX63MRasUG58S6/AsdpdnIWHNu0jc0l5C UClnRUpupEBvel2HY7w3qZk6H7cfl8wmLodXNkQcdyIQdpddLSmz5fN7/2FDOqjVd41p MG+yOJrzhGHRiF/NyHJTCOBg7dMORl6h2VW6R7nMBTTnhfVBa0QVoeigimM3UJs/003u bBPA== X-Gm-Message-State: AJcUukcXiOsqyFDPojkSF5JN8hyobiJFRbzbSlRdHcnRAygtxp9I/ouM hDQaEG7x1mTOg5NnhLmnHJfIXnBNyqQt9oy3NpI= X-Google-Smtp-Source: ALg8bN7pQnUD8rq3gBDhoWRATBlOd/DznQtbyYCobaNs0x2GVRtpcPRnUYk9F3GCYT+7UUb0LzfTKwBcJmBp8jI8Dsg= X-Received: by 2002:a02:a589:: with SMTP id b9mr23251407jam.113.1549015872323; Fri, 01 Feb 2019 02:11:12 -0800 (PST) MIME-Version: 1.0 References: <0243D3A4-2C15-4B31-81A8-C2E5892913F9@koalephant.com> <2d8efb96-ed1f-28e4-e0fe-603a2d0f1962@gmail.com> In-Reply-To: Date: Fri, 1 Feb 2019 10:11:01 +0000 Message-ID: To: Benjamin Morel Cc: Peter Kokot , Internals Content-Type: multipart/alternative; boundary="000000000000d246e50580d25c18" Subject: Re: [PHP-DEV] Deprecation ideas for PHP 8 From: rowan.collins@gmail.com (Rowan Collins) --000000000000d246e50580d25c18 Content-Type: text/plain; charset="UTF-8" On Thu, 31 Jan 2019 at 22:39, Benjamin Morel wrote: >> What if people's muscle memory, their coding standards, their need for progressive compatibility, their tools, the tutorials they follow, the code snippets they copy, all make it easier to just keep using the old names? >> Then our "deprecation" means nothing, and we are stuck with a long list of aliases to maintain, and people learning the language scratching their heads at inconsistent examples. > Deprecation notices. Tooling also helps a lot here: IDEs (PHPStorm for example, strikes through deprecated method names), and static code analysis tools. Deprecation notices won't change people's *desire* to change their code. If you raised a deprecation notice for every call to, say "htmlspecialchars", the only result would be people turning off deprecation notices, and missing more important deprecations. >> ... although it takes us close to "completely new language" territory. > Maybe not, if this can be done in a mostly BC way. It wasn't the BC I was worrying about there, but the possibility that projects would adopt one style or the other, and readers coming from an "old-style" project might find the code in a "new-style" project rather alien. In a worst case scenario, it would feel like we had two languages interoperating on the same runtime, like when HHVM hosted both PHP and Hack. It's not inevitable, though, just a risk to think about if we ever get to that position. Regards, -- Rowan Collins [IMSoP] --000000000000d246e50580d25c18--