Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:57002 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 94297 invoked from network); 22 Dec 2011 15:17:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Dec 2011 15:17:36 -0000 Authentication-Results: pb1.pair.com header.from=addw@phcomp.co.uk; sender-id=permerror Authentication-Results: pb1.pair.com smtp.mail=addw@phcomp.co.uk; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain phcomp.co.uk designates 78.32.209.33 as permitted sender) X-PHP-List-Original-Sender: addw@phcomp.co.uk X-Host-Fingerprint: 78.32.209.33 freshmint.phcomp.co.uk Linux 2.6 Received: from [78.32.209.33] ([78.32.209.33:61211] helo=mint.phcomp.co.uk) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4D/33-12618-F0A43FE4 for ; Thu, 22 Dec 2011 10:17:36 -0500 Received: from addw by mint.phcomp.co.uk with local (Exim 4.63) (envelope-from ) id 1RdkOi-0001Ci-Np for internals@lists.php.net; Thu, 22 Dec 2011 15:17:32 +0000 Date: Thu, 22 Dec 2011 15:17:32 +0000 To: internals@lists.php.net Message-ID: <20111222151732.GC25857@phcomp.co.uk> Mail-Followup-To: internals@lists.php.net References: <2095305E-D4E3-4D7E-8218-32EE99688E0C@GMAIL.COM> <2C90FB94-38C4-4270-8C6A-B89304BA8ED8@gmail.com> <159A7CA2-8561-40DA-9434-CAAE12304DDB@gmail.com> <005701ccc0b3$58c8dee0$0a5a9ca0$@alliantinternet.com> <20111222145159.GY25857@alliantinternet.com> <006101ccc0ba$46b81160$d4283420$@alliantinternet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <006101ccc0ba$46b81160$d4283420$@alliantinternet.com> User-Agent: Mutt/1.4.2.2i Organization: Parliament Hill Computers Ltd Subject: Re: [PHP-DEV] Return Type Hinting for Methods RFC From: addw@phcomp.co.uk (Alain Williams) On Thu, Dec 22, 2011 at 09:59:16AM -0500, Dmitri Snytkine wrote: > I never said to make it mandatory, only to make it available. Just like the > type hinting of function call is optional but not mandatory, which is a big > advantage over Java in my opinion. > After all, if you make return type hinting mandatory, it would break 100% of > all existing php scripts. Agreed. I did not make myself clear enough: It should be optional/available but with an option to make it mandatory for a module -- on a module by module basis so that it did not affect code outside of the module. > To clarify I am asking to make type hinting for variable declaration an > available option. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php #include