Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93525 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 26198 invoked from network); 25 May 2016 19:13:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 May 2016 19:13:04 -0000 Authentication-Results: pb1.pair.com header.from=me@kelunik.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=me@kelunik.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain kelunik.com from 81.169.146.160 cause and error) X-PHP-List-Original-Sender: me@kelunik.com X-Host-Fingerprint: 81.169.146.160 mo4-p00-ob.smtp.rzone.de Received: from [81.169.146.160] ([81.169.146.160:21711] helo=mo4-p00-ob.smtp.rzone.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AA/19-14311-F39F5475 for ; Wed, 25 May 2016 15:13:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1464203581; l=2064; s=domk; d=kelunik.com; h=Content-Type:Cc:To:From:Subject:Date:References:In-Reply-To: MIME-Version; bh=0MZ5ghwhRIocWEWNnVxmY/xv0I0bSICCulFSd5DRpe8=; b=eg6deboYJlS+W9G4SQxHST0jInW7GkdGim9oaexE+x1QZP2h7kO2g/ZIM8lzP5jYlAq Nf65WAJrTjndBajVIW5ArQ2jPHMmm5vABHfKaH/XHd3CCCZ0zlarVG4y/x7GNZd12ivwk uC+eb7tQn4np8kENmi9bpcXr8QvuAeYe/Os= X-RZG-AUTH: :IWkkfkWkbvHsXQGmRYmUo9mls2vWuiu+7SLGvomb4bl9EfHtO3s6 X-RZG-CLASS-ID: mo00 Received: from mail-wm0-f48.google.com ([74.125.82.48]) by smtp.strato.de (RZmta 37.27 AUTH) with ESMTPSA id U07811s4PJD0qy9 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp384r1 with 384 ECDH bits, eq. 7680 bits RSA)) (Client did not present a certificate) for ; Wed, 25 May 2016 21:13:00 +0200 (CEST) Received: by mail-wm0-f48.google.com with SMTP id z87so20835849wmh.1 for ; Wed, 25 May 2016 12:13:00 -0700 (PDT) X-Gm-Message-State: ALyK8tLuUjqup1Zrrt7R/Fu8wDZ+VWx3YbIGiyQHmjaBI7UkrCu1TCe1IhSb8J3bt3V0qS2smUo5UPfNfTABLw== MIME-Version: 1.0 X-Received: by 10.28.93.6 with SMTP id r6mr5557015wmb.93.1464203580583; Wed, 25 May 2016 12:13:00 -0700 (PDT) Received: by 10.28.53.132 with HTTP; Wed, 25 May 2016 12:13:00 -0700 (PDT) In-Reply-To: References: <80.72.63510.DAFA5475@pb1.pair.com> <68fd73e7-ad19-3758-7b7a-6013cc26385f@gmail.com> <11.87.14311.EC5E5475@pb1.pair.com> <46620281-18af-094f-d484-8fc69bd7dc11@gmail.com> Date: Wed, 25 May 2016 21:13:00 +0200 X-Gmail-Original-Message-ID: Message-ID: To: PHP Internals Cc: Stanislav Malyshev , Andrea Faulds Content-Type: multipart/alternative; boundary=001a114690d84cbb3e0533af7691 Subject: Re: [PHP-DEV] [RFC][Vote] Typed Properties From: me@kelunik.com (Niklas Keller) --001a114690d84cbb3e0533af7691 Content-Type: text/plain; charset=UTF-8 2016-05-25 20:39 GMT+02:00 Fleshgrinder : > In my opinion it should simply vanish along with its definition. I mean, > Usually, yes. But suddenly `private Type $foo` isn't reliable anymore if unset is supported for typed properties, because the following would just remove all type info / enforcement: $backup = $this->foo; unset($this->foo); $this->foo = $backup; Unset can reset it to the default value, but wiping type information is probably not an option here. Regards, Niklas --001a114690d84cbb3e0533af7691--