Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44644 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30656 invoked from network); 2 Jul 2009 13:02:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Jul 2009 13:02:33 -0000 Authentication-Results: pb1.pair.com header.from=ilia@ilia.ws; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ilia@ilia.ws; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ilia.ws designates 209.85.219.227 as permitted sender) X-PHP-List-Original-Sender: ilia@ilia.ws X-Host-Fingerprint: 209.85.219.227 mail-ew0-f227.google.com Received: from [209.85.219.227] ([209.85.219.227:38465] helo=mail-ew0-f227.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 05/03-16153-7EFAC4A4 for ; Thu, 02 Jul 2009 09:02:33 -0400 Received: by ewy27 with SMTP id 27so1846534ewy.23 for ; Thu, 02 Jul 2009 06:02:29 -0700 (PDT) Received: by 10.210.61.8 with SMTP id j8mr50114eba.26.1246539749111; Thu, 02 Jul 2009 06:02:29 -0700 (PDT) Received: from ?192.168.1.169? (TOROON63-1176059019.sdsl.bell.ca [70.25.60.139]) by mx.google.com with ESMTPS id 7sm5151829eyg.7.2009.07.02.06.02.23 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 02 Jul 2009 06:02:28 -0700 (PDT) Cc: PHP Internals , Derick Rethans , Stanislav Malyshev , Hannes Magnusson Message-ID: <89868409-EBAC-47DE-8D6D-0DCD88DE9DE6@ilia.ws> To: Paul Biggar In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v935.3) Date: Thu, 2 Jul 2009 09:02:18 -0400 References: <85073B28-671D-4A8F-B2D6-5704E3E180BB@ilia.ws> X-Mailer: Apple Mail (2.935.3) Subject: Re: Flexible type hinting From: ilia@ilia.ws (Ilia Alshanetsky) Personally, I am uncertain about +int or -int in general, IMO that compromise will eventually be identical to numeric an cause endless confusion for the users between (+/-)int and int. The reason I used a completely different name is to prevent confusion. On 2-Jul-09, at 8:53 AM, Paul Biggar wrote: > On Thu, Jul 2, 2009 at 1:43 PM, Ilia Alshanetsky wrote: >> >> On 2-Jul-09, at 4:45 AM, Paul Biggar wrote: >>> I think you might not have read what I suggested (it is different >>> than >>> the one I emailed to you privately). What you want is fully >>> supported. >>> If you must be passed an int, use the +int hint. >> >> I'd rather use -int, then +int and make people who want loose >> typing do the >> extra bit, because native typing should be strict. > > I think everyone wants their favourite to be default. I was eager to > have the typing that's currently in the manual be the default, since > that's what people are used to seeing. I suggested that strong type > checks use +int exactly because that's different to what's in the > manual, so there would be no confusion. > > I'm really looking to get people to agree to the principle that we > would like to be able to hint every signature without large changes to > the manual, since we've been looking at it for years. > > > > Thanks, > Paul > > > > > -- > Paul Biggar > paul.biggar@gmail.com