Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44587 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 12775 invoked from network); 1 Jul 2009 18:32:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Jul 2009 18:32:29 -0000 Authentication-Results: pb1.pair.com smtp.mail=ilia@prohost.org; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=ilia@prohost.org; sender-id=unknown Received-SPF: error (pb1.pair.com: domain prohost.org from 209.85.220.224 cause and error) X-PHP-List-Original-Sender: ilia@prohost.org X-Host-Fingerprint: 209.85.220.224 mail-fx0-f224.google.com Received: from [209.85.220.224] ([209.85.220.224:41018] helo=mail-fx0-f224.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1C/B4-24906-ABBAB4A4 for ; Wed, 01 Jul 2009 14:32:27 -0400 Received: by fxm24 with SMTP id 24so1120560fxm.23 for ; Wed, 01 Jul 2009 11:32:24 -0700 (PDT) Received: by 10.204.70.75 with SMTP id c11mr2586023bkj.128.1246473142608; Wed, 01 Jul 2009 11:32:22 -0700 (PDT) Received: from ?10.195.36.143? ([24.114.234.32]) by mx.google.com with ESMTPS id z15sm2484841fkz.34.2009.07.01.11.32.20 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 01 Jul 2009 11:32:21 -0700 (PDT) References: <4A4BA5C8.1020204@zend.com> Message-ID: To: Stanislav Malyshev In-Reply-To: <4A4BA5C8.1020204@zend.com> Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Mailer: iPhone Mail (7A341) Mime-Version: 1.0 (iPhone Mail 7A341) Date: Wed, 1 Jul 2009 14:18:03 -0400 Cc: PHP internals Subject: Re: [PHP-DEV] RFC: Type hinting revisited for PHP 5.3 From: ilia@prohost.org (Ilia Alshanetsky) As far as your point goes, numeric hint addresses it. Ilia Alshanetsky CIO/CSO Centah Inc. On 2009-07-01, at 2:07 PM, Stanislav Malyshev wrote: > Hi! > >> The patch is available here: http://ia.gd/patch/type_hint_53.txt > > Technical comment: as this patch changes binary API this shouldn't > happen in 5.3 branch. So maybe it's better to make it for 6. > > As for the idea itself, it is obvious that many people like it, I > would just note that it would produce a confusion for some people > due to the fact that true, 1, 1.0, b'1' and '1' now become > incompatible values and (once you start using typehints, of course) > you'd have to explicitly convert them. That would lead people to > stuff their code with explicit type conversions, which doesn't add > to code cleanness. This also means that internal functions and user > functions would behave differently with regard to type conversions. > -- > Stanislav Malyshev, Zend Software Architect > stas@zend.com http://www.zend.com/ > (408)253-8829 MSN: stas@zend.com