Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:75512 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83482 invoked from network); 14 Jul 2014 22:24:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Jul 2014 22:24:37 -0000 Authentication-Results: pb1.pair.com smtp.mail=addw@phcomp.co.uk; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=addw@phcomp.co.uk; sender-id=permerror 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 Received: from [78.32.209.33] ([78.32.209.33:50576] helo=mint.phcomp.co.uk) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AE/50-15121-2A854C35 for ; Mon, 14 Jul 2014 18:24:35 -0400 Received: from addw by mint.phcomp.co.uk with local (Exim 4.72) (envelope-from ) id 1X6off-0005QG-AB for internals@lists.php.net; Mon, 14 Jul 2014 23:24:31 +0100 Date: Mon, 14 Jul 2014 23:24:31 +0100 To: internals@lists.php.net Message-ID: <20140714222431.GM27743@phcomp.co.uk> Mail-Followup-To: internals@lists.php.net References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Parliament Hill Computers Ltd User-Agent: Mutt/1.5.20 (2009-12-10) Subject: Re: [PHP-DEV] [RFC] Scalar Type Hinting With Casts (re-opening) From: addw@phcomp.co.uk (Alain Williams) On Tue, Jul 15, 2014 at 01:16:49AM +0300, Park Framework wrote: > Maybe we should make two different syntax? > > fun(int $num, array $list) - for strict type compliance > fun((int) $num, (array) $list) - converted to type +1 Don't forget to note that we will still retain the current syntax: fun($num, $list) - arguments passed as is, not type checking/juggling -- 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