Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65130 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 42781 invoked from network); 23 Jan 2013 21:53:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Jan 2013 21:53:35 -0000 Authentication-Results: pb1.pair.com header.from=cryptocompress@googlemail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=cryptocompress@googlemail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 209.85.214.48 as permitted sender) X-PHP-List-Original-Sender: cryptocompress@googlemail.com X-Host-Fingerprint: 209.85.214.48 mail-bk0-f48.google.com Received: from [209.85.214.48] ([209.85.214.48:62478] helo=mail-bk0-f48.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 33/C5-30997-DDB50015 for ; Wed, 23 Jan 2013 16:53:35 -0500 Received: by mail-bk0-f48.google.com with SMTP id jk14so2174845bkc.21 for ; Wed, 23 Jan 2013 13:53:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=biYRdHIANLK0Zt8B4z4/goDAHvrDlLp8Gr+uIrug6zY=; b=vkLX1/THId/4nPZhScWV00Cvv4V72i0qoLnuQv44PGoC4g0Vn1ZMnv6gv6IrGX8qHi kFzDeEcubEC6Zz1FEILgA0CxTLHa6YlhCEf/PYjZXVVMvKubUHBPeZPavhOV8tp3Zolw G5n3Q16p7PsXWvNu6Zd4eTAa9VFheC/4wQ6hkX8yG/bAm6rINmeTQOIgemhc7uCQvoB4 Rnj85KK0Upu2kD8i6tOPJFLrre3z2baulPO/vzBw0XeC5P9T0bFQzt+D1d17Hm1/Bvlp XLSaKl3LCw+Sp7wdZfoNE5WaL5rAmMW8VH1d+B5mpVSRuAQ2k3agqU7/1NrJnPTBjhaw Hgfw== X-Received: by 10.204.148.134 with SMTP id p6mr980828bkv.75.1358978010358; Wed, 23 Jan 2013 13:53:30 -0800 (PST) Received: from [192.168.1.111] (mnch-5d85de30.pool.mediaWays.net. [93.133.222.48]) by mx.google.com with ESMTPS id f24sm15536620bkv.7.2013.01.23.13.53.29 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 23 Jan 2013 13:53:29 -0800 (PST) Message-ID: <51005B7F.6060209@googlemail.com> Date: Wed, 23 Jan 2013 22:51:59 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: internals@lists.php.net References: <510038C9.5000900@mrclay.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] C# properties vs. accessors RFC From: cryptocompress@googlemail.com (Crypto Compress) Hello Levi, > Agreed, but if they are automatically generated then I see no harm in > allow custom `isset` and `unset` behavior as long as it doesn't get in > the way or complicate things. If override of isset/unset is possible, we will end up debugging: true === isset($this->someUninitializedValue) or unset($this->memoryConsuming); // with no effect What is the benefit of this? > I also don't like the `?` for `nullable`. Just stick with PHP > convention and do: > > class Foo { > public Bar $bar = NULL; > } There is no such PHP convention. The PHP convention is *not restrict type* (+"loosely typed" addons). So NULL is automatically allowed. cryptocompress