Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:98366 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 49919 invoked from network); 1 Mar 2017 07:16:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Mar 2017 07:16:06 -0000 Authentication-Results: pb1.pair.com smtp.mail=ocramius@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ocramius@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.172 as permitted sender) X-PHP-List-Original-Sender: ocramius@gmail.com X-Host-Fingerprint: 209.85.220.172 mail-qk0-f172.google.com Received: from [209.85.220.172] ([209.85.220.172:34392] helo=mail-qk0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BE/A2-16445-23576B85 for ; Wed, 01 Mar 2017 02:16:04 -0500 Received: by mail-qk0-f172.google.com with SMTP id s186so56460629qkb.1 for ; Tue, 28 Feb 2017 23:16:02 -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 :cc; bh=BRrAVpJr3QtD5mKUgNNsH6hCzJlhwzrB5Zln0EONaX8=; b=FSWGRr6q8eTZuzJpCUN4P9MslPw/zwfOe9ReoCoqq0P2vmhS/QM1sX2cH3SPxiDxYX 8zjqFEprZKze0Tr4O/TTT0Nl3jj9b5c1irISxOGXuQ2qBvxccRYfTs60Igohotanw1b2 9CL1Iyeiov4IL9MeA7vWlDudRzReAqKrxH3PAZADmxkQGQ5SLBQRz2LwVzZ2M5wPc0DX s0/CF6PUR/cw9gXM/p8JGUcEhen5qY0oiA4STR7X5rToiFuDYuEqFZb5A2vaMGeXyo9X SI73HMjOwPTM6BxRT9kez523mfMxMK0LExwKQweUeyWFw0mjytd0taNj89IfW3nyUUC0 7lJg== 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:cc; bh=BRrAVpJr3QtD5mKUgNNsH6hCzJlhwzrB5Zln0EONaX8=; b=gr+Q4F2aNHE19cj+Fv1xHlPaKBVqnHTSHzJcnc8oaH05EkzKtSZjiSUiHr02X6AcTB mrBqWcfAi3e9Re3zhJhpMANncSAhLHz6aOt6a46tzDF450ueWMVrgPIbNLMuux+PnWN+ 5uV/n62BGHz6cpyzbAaikz0gdARa2BKtwDlq9w3gZdfMnNVGIC39SYpGdkiz+OYi8oBs xpkVagAjhtpgyWf9tAdZsUj9Pvw8LvU3jiF4HqZd/NhiE8TY7bc9c0kFoRebnsG1D5Eg wOmuUzdoRrCdYLq6Slb5eiJVyCl4u3T3mGxe1e/vSFcpe2zd8H13AmsTJ9MzETDNx9a2 k6Gg== X-Gm-Message-State: AMke39mTYn+ftQxVWEm4T2PqMOe4KfW5uueDrjV8ss1G9hDEQ7ZzlDL9nuzoTJq51nfrHYLpOR4Id+BQc14UIA== X-Received: by 10.237.60.41 with SMTP id t38mr8153274qte.148.1488352560058; Tue, 28 Feb 2017 23:16:00 -0800 (PST) MIME-Version: 1.0 Received: by 10.237.39.33 with HTTP; Tue, 28 Feb 2017 23:15:58 -0800 (PST) Received: by 10.237.39.33 with HTTP; Tue, 28 Feb 2017 23:15:58 -0800 (PST) In-Reply-To: References: Date: Wed, 1 Mar 2017 08:15:58 +0100 Message-ID: To: Wes Cc: PHP Internals List Content-Type: multipart/alternative; boundary=94eb2c19014ea496310549a615e0 Subject: Re: [PHP-DEV][RFC][DISCUSSION] Allow abstract function override From: ocramius@gmail.com (Marco Pivetta) --94eb2c19014ea496310549a615e0 Content-Type: text/plain; charset=UTF-8 An abstract function is a partial interface: I see no value in adding exceptions to interface implementations, especially if you add that: * only works with abstract classes, not interfaces * has a too narrow use-case scenario (need more necessity and scenarios with common patterns) * just write a different interface if it doesn't match what you are doing * if an abstract class doesn't fit your scenario, just don't extend from it * proxying would cause calls to the same methods anyway (on a parent class or a delegate instance), so parameter and return types should match exactly, or else you incur in type-juggling-hell (the proxy example is moot) On 1 Mar 2017 3:21 a.m., "Wes" wrote: > Hello internals, I've just created a new RFC, you can read it at: > > https://wiki.php.net/rfc/allow-abstract-function-override > > Note: I have absolutely no idea how difficult implementing this would be, > as I have no C/internals knowledge. Thus, patches are very welcome - thank > you in advance if you intend to work on it! > > Regards, Wes > --94eb2c19014ea496310549a615e0--