Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93520 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13747 invoked from network); 25 May 2016 17:29:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 May 2016 17:29:01 -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.216 cause and error) X-PHP-List-Original-Sender: me@kelunik.com X-Host-Fingerprint: 81.169.146.216 mo4-p00-ob.smtp.rzone.de Received: from [81.169.146.216] ([81.169.146.216:51204] helo=mo4-p00-ob.smtp.rzone.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 05/E6-14311-AD0E5475 for ; Wed, 25 May 2016 13:28:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1464197335; l=2918; s=domk; d=kelunik.com; h=Content-Type:To:Subject:Date:From:In-Reply-To:References: MIME-Version; bh=Fzju4l3LsSYnwYoa/O5I4bB8TJgvCq1Nwe3dgXE+3rk=; b=PG1o5Rbonn38NsUuUwbGGt3J2LU3f06f0SLTIqBRB28ujlcRk3A0YC8woqwR4/bVGUE ZcE8EydNFDhh0agBnaLLyIhr7Z6wSZdfOxYRxWOB4C/2iDmNhLlrq7jnKK12J6BVdzCrx tewAPegJnyARo8jJfT0phoEQb99D5rliGbY= X-RZG-AUTH: :IWkkfkWkbvHsXQGmRYmUo9mls2vWuiu+7SLGvomb4bl9EfHtO3U6 X-RZG-CLASS-ID: mo00 Received: from mail-wm0-f46.google.com ([74.125.82.46]) by smtp.strato.de (RZmta 37.26 AUTH) with ESMTPSA id i072bcs4PHStJ9O (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:28:55 +0200 (CEST) Received: by mail-wm0-f46.google.com with SMTP id a136so137521164wme.0 for ; Wed, 25 May 2016 10:28:55 -0700 (PDT) X-Gm-Message-State: ALyK8tI4/gN9vOHL1FJNKAMjNz8x1hZq3GziJ/13zVJzrjGqLaw0atUlo2jkDi8/mFqdDwgaNsrvDrECBiBdIg== X-Received: by 10.28.226.84 with SMTP id z81mr4960856wmg.73.1464197335163; Wed, 25 May 2016 10:28:55 -0700 (PDT) MIME-Version: 1.0 References: <7B.12.14311.F79C5475@pb1.pair.com> <2E.D5.14311.F6DD5475@pb1.pair.com> In-Reply-To: <2E.D5.14311.F6DD5475@pb1.pair.com> Date: Wed, 25 May 2016 17:28:45 +0000 X-Gmail-Original-Message-ID: Message-ID: To: Andrea Faulds , internals@lists.php.net Content-Type: multipart/alternative; boundary=001a114b0cd40b29f70533ae022d Subject: Re: [PHP-DEV] [RFC][Vote] Typed Properties From: me@kelunik.com (Niklas Keller) --001a114b0cd40b29f70533ae022d Content-Type: text/plain; charset=UTF-8 Andrea Faulds schrieb am Mi., 25. Mai 2016 19:14: > Hi Niklas, > > Niklas Keller wrote: > >> > >> 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. > > That's not quite true, unset properties produce a notice when accessed, > properties set to null do not, and it is possible to check whether a > property is set or not versus just null. Likewise with variables, array > members, etc. > We're talking about two different things. Once it's the default value after declaring it with private ?Type $foo and on the other hand the behavior after unser. IMO the first should default to null while unsetting a typed property should fail. Thanks. > > -- > Andrea Faulds > https://ajf.me/ > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --001a114b0cd40b29f70533ae022d--