Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80589 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 73783 invoked from network); 15 Jan 2015 20:39:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Jan 2015 20:39:33 -0000 Authentication-Results: pb1.pair.com header.from=dev@mabe.berlin; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=dev@mabe.berlin; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain mabe.berlin from 80.237.132.167 cause and error) X-PHP-List-Original-Sender: dev@mabe.berlin X-Host-Fingerprint: 80.237.132.167 wp160.webpack.hosteurope.de Received: from [80.237.132.167] ([80.237.132.167:58277] helo=wp160.webpack.hosteurope.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F6/42-61348-38528B45 for ; Thu, 15 Jan 2015 15:39:32 -0500 Received: from dslb-178-008-196-229.178.008.pools.vodafone-ip.de ([178.8.196.229] helo=[192.168.178.30]); authenticated by wp160.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) id 1YBrCS-0001cp-8z; Thu, 15 Jan 2015 21:39:28 +0100 Message-ID: <54B8257F.1050605@mabe.berlin> Date: Thu, 15 Jan 2015 21:39:27 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: internals@lists.php.net References: <8DCD1B72-C81D-499E-B455-E4A042CD76E6@ajf.me> <4E2073DE-0951-498C-97BB-DDAC094F11FA@ajf.me> <9a033dd1f223f854e760924d118ab812@mail.gmail.com> <2ae0164cb9b9bf1c974d7a3c60af0466@mail.gmail.com> <6105ea99002e634373c09685310e26a6@mail.gmail.com> <85F6139E-6332-4645-91B8-C852B07EA62A@ajf.me> <12433808-9D62-48D3-B66E-74572C61BF68@zend.com> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de;dev@mabe.berlin;1421354372;d053750a; Subject: Re: [PHP-DEV] [RFC] Scalar Type Hints v0.2 From: dev@mabe.berlin (Marc Bennewitz) Am 15.01.2015 um 20:45 schrieb Marcio Almada: > Hi, > > I would like to call everyone's attention, specially people > contributing directly to this RFC series, to what S.A.N just said: > >> Many developers PHP offers dual syntax: >> >> 1. Strict >> function bar(int $num){} >> >> 2. Lax >> function bar((int) $num){} >> >> Maybe it makes sense to put this option on the ballot if it passes a vote, >> it will be possible to put an end to the discus? > > This idea has been **so recurrent** and yet systematically ignored by RFC > owners. Why? I think that we need to baby step and try to approve coercive > type declarations first and decide upon a possible stricter type check > later: > > How a bout a reboot of what ircmaxell@php.net already started in > https://wiki.php.net/rfc/parameter_type_casting_hints for v0.3? > > PS: Please, let's not fall into the mindset of "if v0.2 is not a good idea > then v0.1 instantly becomes more acceptable", we still have time to try > some alternatives. > A function only defines the arguments and types it requires and not where the arguments comes from. Casting is part of "Where the arguments comes from" Marc