Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93516 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 4098 invoked from network); 25 May 2016 17:00:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 May 2016 17:00:15 -0000 Authentication-Results: pb1.pair.com smtp.mail=me@kelunik.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=me@kelunik.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain kelunik.com from 81.169.146.218 cause and error) X-PHP-List-Original-Sender: me@kelunik.com X-Host-Fingerprint: 81.169.146.218 mo4-p00-ob.smtp.rzone.de Received: from [81.169.146.218] ([81.169.146.218:14775] helo=mo4-p00-ob.smtp.rzone.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E5/C4-14311-D1AD5475 for ; Wed, 25 May 2016 13:00:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1464195610; l=2175; s=domk; d=kelunik.com; h=Content-Type:Cc:To:From:Subject:Date:References:In-Reply-To: MIME-Version; bh=noi8f9N6JI2fCVAMCA2B6x1aqUg/iK5OQ71ULKQE1II=; b=IwCCDJP4FIGJUkjjZCCbB7d9oTPOnHBB66u9s/kOHQb8yMe0HHs4SvmCwAOGrb8zmtY EKX+apSjKu2PxRRbgA/Gmw2Dc+Mq+RJOdUD5Fbh7ET4a7ZVCZ20QP5ph8MQVqdat5mA47 VvY3KnKVo86SzYwqH6ByMYCeOwsBrmbNjI8= X-RZG-AUTH: :IWkkfkWkbvHsXQGmRYmUo9mls2vWuiu+7SLGvomb4bl9EfHtO3A6 X-RZG-CLASS-ID: mo00 Received: from mail-wm0-f43.google.com ([74.125.82.43]) by smtp.strato.de (RZmta 37.27 AUTH) with ESMTPSA id j03f67s4PH0Asw7 (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 19:00:10 +0200 (CEST) Received: by mail-wm0-f43.google.com with SMTP id z87so70441738wmh.0 for ; Wed, 25 May 2016 10:00:10 -0700 (PDT) X-Gm-Message-State: ALyK8tKgjclema/rMGc5JwGy3pAyqoJ+k0gR+M5xMLT8Tmm5vFsv0qztiSzIwGdm/H6qoYOW36rZf0peYQtFFQ== MIME-Version: 1.0 X-Received: by 10.28.27.81 with SMTP id b78mr4689770wmb.19.1464195610204; Wed, 25 May 2016 10:00:10 -0700 (PDT) Received: by 10.28.53.132 with HTTP; Wed, 25 May 2016 10:00:10 -0700 (PDT) In-Reply-To: References: <7B.12.14311.F79C5475@pb1.pair.com> Date: Wed, 25 May 2016 19:00:10 +0200 X-Gmail-Original-Message-ID: Message-ID: To: Bob Weinand Cc: Andrea Faulds , PHP Internals Content-Type: multipart/alternative; boundary=001a114b9fd43a67ea0533ad9baf Subject: Re: [PHP-DEV] [RFC][Vote] Typed Properties From: me@kelunik.com (Niklas Keller) --001a114b9fd43a67ea0533ad9baf Content-Type: text/plain; charset=UTF-8 > > There is a difference between not set and no meaningful value. > In PHP, there's no such difference for properties. And I think we should be consistent with the existing behavior here. > The former is literally unset(), the latter is null. The only semantics > PHP exposes here is that not set can be upgraded to "no meaningful" value > in form of null with a notice. > > The difference thus is quite minor, but semantically important. > Hence to *set* the value, we need to explicitly set null. > > If we don't do it this way, we won't have a way to explicitly *set* > nullable properties to a value (null in this case). (without explicit unset > in ctor). > > Bob --001a114b9fd43a67ea0533ad9baf--