Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:66682 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 95497 invoked from network); 18 Mar 2013 10:16:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Mar 2013 10:16:34 -0000 Authentication-Results: pb1.pair.com smtp.mail=marcello.duarte@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=marcello.duarte@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.52 as permitted sender) X-PHP-List-Original-Sender: marcello.duarte@gmail.com X-Host-Fingerprint: 74.125.82.52 mail-wg0-f52.google.com Received: from [74.125.82.52] ([74.125.82.52:53053] helo=mail-wg0-f52.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 38/65-57457-189E6415 for ; Mon, 18 Mar 2013 05:16:34 -0500 Received: by mail-wg0-f52.google.com with SMTP id 15so3863716wgd.7 for ; Mon, 18 Mar 2013 03:16:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:subject:mime-version:content-type:from:in-reply-to:date :cc:content-transfer-encoding:message-id:references:to:x-mailer; bh=a0mRo8KEBMnmXXo5oG73Jl8ICE0dJ69o9g3B8MpCSDQ=; b=ASL5FUtVrh5cdJMOWOXX45kAwhp4VYayIAyj2OK9OfziqkB25vCNhQzT1NVuiGALSY 5YPu+LqcxhpCkvWERylMFu2pyrFuzNLF5OPNC8qnLqfsNeau6twZYQldOqfwEWF4+xm8 obCb1GEn4haqbrSa44Jhs5yWi4tTJlxuSTmAUlVT6QyMZIPYdAHvb0LqK4QoU99QBvwg oAj8a+GaZntFhAAWNNE0csYMLCO7H+B6wTzfDay9Hj8t4pZ4jKkoFGcikj2TCxJ4fngl Cw1bULBWxNtxlYQN1xJ4QI7yAeFI0OFSwlO061RyZ+Y1SCwiHW/qwvxVrL+JVZV0jIi4 skxQ== X-Received: by 10.180.78.168 with SMTP id c8mr15340260wix.27.1363601791318; Mon, 18 Mar 2013 03:16:31 -0700 (PDT) Received: from [10.0.1.194] ([141.0.34.138]) by mx.google.com with ESMTPS id fg6sm14016686wib.10.2013.03.18.03.16.29 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 18 Mar 2013 03:16:30 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii In-Reply-To: Date: Mon, 18 Mar 2013 10:17:06 +0000 Cc: Sebastian Krebs Content-Transfer-Encoding: quoted-printable Message-ID: References: To: PHP internals list X-Mailer: Apple Mail (2.1084) Subject: Re: [PHP-DEV] Abstract properties From: marcello.duarte@gmail.com (Marcello Duarte) On 1 Dec 2012, at 12:34, Sebastian Krebs wrote: > Hi, >=20 > Don't want to start a big discussion, but is there a concrete reason, = why > abstract properties (or "a kind of abstract") are not supported? Hi, The reason for not having abstract properties is that when you are = defining a type you don't care about how the implementation will store = the state. The contract is about message exchanges, how the objects will = talk to each other, via the public interface, e.g. the public methods. Also, think of the keyword "abstract" as something that is incomplete. = An abstract class is an incomplete class, an abstract method is an = incomplete method. So an abstract property doesn't make sense, as it = doesn't need anything to be complete. Reinforce the implementation to store state in a particular way would be = a bad feature for PHP. This is one the things we got it right. Kind regards, Marcello