Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64535 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 70320 invoked from network); 4 Jan 2013 23:34:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jan 2013 23:34:31 -0000 Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.174 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.214.174 mail-ob0-f174.google.com Received: from [209.85.214.174] ([209.85.214.174:52601] helo=mail-ob0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7E/94-38386-60767E05 for ; Fri, 04 Jan 2013 18:34:31 -0500 Received: by mail-ob0-f174.google.com with SMTP id ta14so15233655obb.5 for ; Fri, 04 Jan 2013 15:34:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=Q/IPDa3BnPb1c8C40nFfd1rqFMmOfT/LGx5iwt2Oamc=; b=UDvU1tTQTljNSXAWOurLIDh7KZUxkA+yWt6Ir2s7seaNfMdsa1NHXb8XitySLwZfT5 h1xFLO+E5YCxm9jO+0nwFFyDWhqNLCkmMuseptRfyfIgQwUp0lG+pH/8siYuDabzrhFM kI0mZ1h6ssCquw9yfUz/Ex3BiVQEOtXSI1pfm1c8ZP4nK72ebncGJkKiwxH5AXWUrSi6 ZX2exFy5uged9xqeTgSg3Hr97cLmB/blo8phmsqskEni/unvVHeuyLLtNfj+QBmLVs7A 6Ca4tw/jsak6tV2xjksaAjgNPfN4/6te+7/HU0Rd3U1A8NbW0Ct8IM034r9VIBqxuCBy xVHg== MIME-Version: 1.0 Received: by 10.182.192.68 with SMTP id he4mr39870032obc.99.1357342468614; Fri, 04 Jan 2013 15:34:28 -0800 (PST) Sender: morrison.levi@gmail.com Received: by 10.76.82.234 with HTTP; Fri, 4 Jan 2013 15:34:28 -0800 (PST) In-Reply-To: <19D80B01-BE88-4119-8A15-B631A96060E5@mrclay.org> References: <19D80B01-BE88-4119-8A15-B631A96060E5@mrclay.org> Date: Fri, 4 Jan 2013 16:34:28 -0700 X-Google-Sender-Auth: EhnkJUgQwstAbmXXaNWOIXRF0yo Message-ID: To: Steve Clay Cc: Nikita Popov , PHP internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] [RFC] Alternative typehinting syntax for accessors From: levim@php.net (Levi Morrison) >We should also consider how an author would allow type-hinted properties to accept NULL as a new value, in both proposals. public $foo { get; set(Foo $value = NULL) { $this->foo = $value; } } Would work for traditional type-hints.