Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64544 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 29272 invoked from network); 5 Jan 2013 10:39:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Jan 2013 10:39:03 -0000 Authentication-Results: pb1.pair.com smtp.mail=bschussek@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=bschussek@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.50 as permitted sender) X-PHP-List-Original-Sender: bschussek@gmail.com X-Host-Fingerprint: 74.125.82.50 mail-wg0-f50.google.com Received: from [74.125.82.50] ([74.125.82.50:48795] helo=mail-wg0-f50.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9A/CD-38386-6C208E05 for ; Sat, 05 Jan 2013 05:39:02 -0500 Received: by mail-wg0-f50.google.com with SMTP id es5so8273853wgb.29 for ; Sat, 05 Jan 2013 02:38:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=CswEh5EoIbZbBFke3ES6pjOSjCISeT92ds9p+JOq3wk=; b=dEwzYSrP5OVAQlzZXzXpXZPZGLlo7nWAkBplrThdtUEeSZqolWPzhA7c6Y7hTMMvv5 kP0cGpHpwQz1POkIBUxlaUQ6ZEFCQ45RoUIYMQQHhjuw2woN5PZ+Q9HjAqVAjjLVolGd XJbMAjGV+MWcYz8JlfSibx598oH8gq3e7TDRFbh/vtItI1rPIWOtnaAvV3oFoME1fpxl cmoct1fu3y08J7ZHhkD1Yf8lVDYfi2i9vvtGnkr+4T3lznfeXvj/UvW78nOvCUWCV0nk /IxhkWenM1IvPWeEQdmJqax8l9Kya0dUnGOTtbLxuHQJ+lhm0KySLtauecYiulJmvXcz 7Hwg== Received: by 10.194.236.68 with SMTP id us4mr88449960wjc.11.1357382338901; Sat, 05 Jan 2013 02:38:58 -0800 (PST) MIME-Version: 1.0 Received: by 10.194.32.101 with HTTP; Sat, 5 Jan 2013 02:38:28 -0800 (PST) In-Reply-To: References: <19D80B01-BE88-4119-8A15-B631A96060E5@mrclay.org> Date: Sat, 5 Jan 2013 11:38:28 +0100 Message-ID: To: Nikita Popov Cc: Steve Clay , PHP internals Content-Type: multipart/alternative; boundary=089e01493f5e22764d04d288348c Subject: Re: [PHP-DEV] [RFC] Alternative typehinting syntax for accessors From: bschussek@gmail.com (Bernhard Schussek) --089e01493f5e22764d04d288348c Content-Type: text/plain; charset=UTF-8 2013/1/5 Nikita Popov > I think that's a very interesting question, thanks for bringing it up. I > think a good approach here would be the same one used for function argument > typehints, i.e. allow NULL when NULL is specified as the default value. So > `public DateTime $date;` would not allow an explicit NULL assignment, > whereas `public DateTime $date = NULL;` would. I was wondering about this question too. I really like that solution. Bernhard --089e01493f5e22764d04d288348c--