Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65060 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 95543 invoked from network); 21 Jan 2013 22:56:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Jan 2013 22:56:16 -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 74.125.83.42 as permitted sender) X-PHP-List-Original-Sender: cryptocompress@googlemail.com X-Host-Fingerprint: 74.125.83.42 mail-ee0-f42.google.com Received: from [74.125.83.42] ([74.125.83.42:64043] helo=mail-ee0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A1/B0-20901-D87CDF05 for ; Mon, 21 Jan 2013 17:56:14 -0500 Received: by mail-ee0-f42.google.com with SMTP id b47so3091870eek.15 for ; Mon, 21 Jan 2013 14:56:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.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=qqntiNxc+UbxgRL6MIPsNw/eAWXMh3m3bYKuuCG2/Tk=; b=APS5k/RyILv7QGZ4QyUpplOyfJ+RD/MOekxV+YBqGg0hIsoDZNZhc0YphzAhY+6cU+ 6SHo+6xdcmKLFZPb1O2Mav6vjQ2k3MzBZnazV0VS/fO9hnvXYgMP//KuzDzjp7p3qHjf f1o8B/3xs2N2YIYAvkj4dOvwmHsmbE45Ub839s+MZBQ65qi0pVeX+3BWEMDn6UdUC776 HRJS1x1nJA2YuCLALY/qXh6tKvXosPYIn1D77X7Ndns94HsDFOQ51a0SCJnE9l9qGoJO XrwwE3vAyeB5C6fQYy+s/ag13wrdRKUuu5iCn5+ylEVouW9IIhMukXYoQVkipDkasDKr kcrg== X-Received: by 10.14.194.199 with SMTP id m47mr65593220een.11.1358808970958; Mon, 21 Jan 2013 14:56:10 -0800 (PST) Received: from [192.168.1.111] (mnch-5d86e694.pool.mediaWays.net. [93.134.230.148]) by mx.google.com with ESMTPS id l3sm24361119een.14.2013.01.21.14.56.09 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 21 Jan 2013 14:56:10 -0800 (PST) Message-ID: <50FDC733.209@googlemail.com> Date: Mon, 21 Jan 2013 23:54:43 +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: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [VOTE] Alternative typehinting syntax for accessors From: cryptocompress@googlemail.com (Crypto Compress) Hello Nikita, for me this "maybe-of-type"-typehinting is a small progression in the right direction. But "Default values and nullability" would break existing code as you need to add a default null at "design-time" (BC break): a = $a; $this->b = $b; } } // test only a $c = new C("foo", null); var_dump($c->a === "foo"); // test only b $c = new C(null, "foo"); var_dump($c->b === "foo"); ?> http://3v4l.org/4oi9k cryptocompress