Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:103243 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 77048 invoked from network); 24 Sep 2018 00:53:17 -0000 Received: from unknown (HELO mail-wm1-f44.google.com) (209.85.128.44) by pb1.pair.com with SMTP; 24 Sep 2018 00:53:17 -0000 Received: by mail-wm1-f44.google.com with SMTP id n11-v6so8093700wmc.2 for ; Sun, 23 Sep 2018 14:00:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=jth0n6CtkpEN1E5Zt6s/QZGVX6YxGErls0UWhEAZUxY=; b=EfJdnSjzplbHaZBm3xBa1+2mBcmc0gzYMCeI9RLxBQ3F+qbivNs59i8EqAIJm7SKtJ Wu600t2SUdOrHDmOMQV21Ha6Rf77lKPomj/6bF2sBVGKbGIKLQFN/yjr6v367kGQV9EF G+pbMIvySSI7ikS7awuQ3RAATxpcRCnbQ/kaLModlnQn3E3S2yLUDMrC9jDYWPbWVPhq t7VXtREbbG7xXi1n8cZCYIvYadt2Yc2BD+Bpjp1iuMP5ceUiZpAfIj7OHQ3v5aZ8Iz9V jsnhH/2oxWM2OT9YjvGltbcrEaJ1e103rxJu/3gwJddsL/8BThvxhZiMczhECk40UOzP BTYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=jth0n6CtkpEN1E5Zt6s/QZGVX6YxGErls0UWhEAZUxY=; b=fbN0tXwqV1xsYZbzYKJuJ0ycQBltbiK9AOAPYYJhABt53vfXIloMEvICRTJYXcTxLW ko4w17Z9jEcuKlgLOIOPUJV5CSj4zFJadSoIloiSkrns0TM9OI9d53YWhPg8CmvqXdyc J2a68i+rR3sMbTTvOs03VOj2lRtTa8KospwvO/ygdOVlaodotICQml2lpsOrEhE2jiTn GzSIGy9xoeS1+b7gdRc/TDvgryjBI1XHP34Y4NdMWABHu4u++fQ0BbgE2zp+WgFGOwzp L+aa8xqHLfxdCZUlBAmiOg13p1NnSUN4dEB1tg2/sZodIg5osVQTh810xsWrDl10zCxB Y3Cg== X-Gm-Message-State: ABuFfogTp+kkz1OQM7zcqvtfGdGJIS2Mag8D731jW7SVmbq42d+ELcFQ L1MPRv7mFvnWAer5k/ukNZy8aF7w X-Google-Smtp-Source: ANB0VdYoKu6CLzBdk0hSRKZ3+VoaJLwYvXI6v5lL2ce64nXnd24s4o0FObEm3e5ljk5NDdKMBzkd6w== X-Received: by 2002:a1c:8942:: with SMTP id l63-v6mr137543wmd.66.1537736443569; Sun, 23 Sep 2018 14:00:43 -0700 (PDT) Received: from [192.168.0.14] (cpc84253-brig22-2-0-cust114.3-3.cable.virginm.net. [81.108.141.115]) by smtp.googlemail.com with ESMTPSA id 14-v6sm26545564wmp.32.2018.09.23.14.00.42 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 23 Sep 2018 14:00:42 -0700 (PDT) To: internals@lists.php.net References: <1681263.Ri4PIu1jiQ@vulcan> <1476841B-EEBA-4513-8DD8-7ACE1F662372@gmail.com> <95a7902d-8451-06ee-debf-6f03c4fd7190@gmail.com> <0f589b64-5c3b-21b2-a396-b626054edb41@gmx.de> Message-ID: <91ab65c4-1584-fe94-acea-734574543450@gmail.com> Date: Sun, 23 Sep 2018 22:00:40 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <0f589b64-5c3b-21b2-a396-b626054edb41@gmx.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB Subject: Re: [PHP-DEV] [RFC] [VOTE] Typed properties v2 From: rowan.collins@gmail.com (Rowan Collins) On 23/09/2018 21:50, Christoph M. Becker wrote: > In my opinion, explicitly *declared* properties should not be > unsettable. We don't allow to undefine constants, functions, classes > etc. either. Adding and removing other properties could still be allowed. While I agree, I think that's a somewhat separate discussion: right now, you can unset() a declared property, and that is handled differently from setting it to null. Weird though it is, there is widely-used code which actively relies on this fact, so it's not something we can just "fix". The solution might be some way of marking a class as "completely specified" - no dynamic properties may be added, no declared properties may be unset; but like I say, that's a separate discussion. Regards, -- Rowan Collins [IMSoP]