Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49377 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99405 invoked from network); 11 Aug 2010 20:01:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Aug 2010 20:01:13 -0000 Authentication-Results: pb1.pair.com header.from=zeev@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=zeev@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.185 as permitted sender) X-PHP-List-Original-Sender: zeev@zend.com X-Host-Fingerprint: 212.25.124.185 il-mr1.zend.com Received: from [212.25.124.185] ([212.25.124.185:59396] helo=il-mr1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FE/13-18548-781036C4 for ; Wed, 11 Aug 2010 16:01:13 -0400 Received: from il-gw1.zend.com (unknown [10.1.1.21]) by il-mr1.zend.com (Postfix) with ESMTP id 4830550517; Wed, 11 Aug 2010 23:00:54 +0300 (IDT) Received: from LAP-ZEEV.zend.com ([10.1.20.50]) by il-gw1.zend.com with Microsoft SMTPSVC(6.0.3790.4675); Wed, 11 Aug 2010 23:01:06 +0300 Message-ID: <7.0.1.0.2.20100811225933.0ef42d88@zend.com> X-Mailer: QUALCOMM Windows Eudora Version 7.0.1.0 Date: Wed, 11 Aug 2010 23:01:05 +0300 To: Alexey Zakhlestin Cc: Lester Caine , PHP internals In-Reply-To: References: <4C62EC4A.9020106@sugarcrm.com> <4C62FD01.7010306@lsces.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-OriginalArrivalTime: 11 Aug 2010 20:01:06.0957 (UTC) FILETIME=[EF6373D0:01CB398F] Subject: Re: [PHP-DEV] back to 5.4 alpha From: zeev@zend.com (Zeev Suraski) At 22:50 11/08/2010, Alexey Zakhlestin wrote: >On Wed, Aug 11, 2010 at 11:41 PM, Lester Caine wrote: > > Ilia Alshanetsky wrote: > >> > >> +1, I think that's the most sensible solution for now that would allow > >> us to proceed with 5.4, something we all seem to be in agreement on. > > > > A slight aside here, as I have not be bothering about what HAS been > > implemented typing wise ... A large section of the code a work > with passes a > > range of data to functions and classes. If the function gets an integer it > > looks up the record with that id, an array assumes the data is already > > loaded, and perhaps a string value defines that a new record of > that name is > > to be created. So I don't want the parameters passed to be tied to a single > > type. Is THAT affected by any of the current typing actions? > >both suggested type-hinting strategies are optional. >so, you, as developer, are free to not use type-hinting and accept any >data you like Alexey, It's been explained countless times why this is WRONG. Please read the archives. If you have and you disagree with it, please take it as an axiom - a feature being 'optional' does not take away from any confusion or complexity associated with it. It's been a design guideline in PHP from the get go, we're not going to give up on it now. Zeev