Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44642 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27768 invoked from network); 2 Jul 2009 12:53:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Jul 2009 12:53:24 -0000 Authentication-Results: pb1.pair.com header.from=paul.biggar@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=paul.biggar@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.227 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: paul.biggar@gmail.com X-Host-Fingerprint: 209.85.219.227 mail-ew0-f227.google.com Received: from [209.85.219.227] ([209.85.219.227:45846] helo=mail-ew0-f227.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 61/62-16153-3CDAC4A4 for ; Thu, 02 Jul 2009 08:53:24 -0400 Received: by ewy27 with SMTP id 27so1838692ewy.23 for ; Thu, 02 Jul 2009 05:53:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=b0aZX6spFWwElb9MBSBe8iQcxlxlVR/Xr5ZZYO/DdcI=; b=W9wOo+95A2DVB1V718+hjYnqcIk/xVZE5Qgbdou28T7SfpZkazjkiiCKbeYfXcTUT2 DjRG3UpPjBPyZnxi5hyN3PuE1rix+/6xO9liNmnT0gc3v1Q8QansTqYdDJVvj0guGfoL s2jnUYenH8gLwvGoyvFobVB1gj3Hb/HnYuNYM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=iCVZZevl5jKUOcNM7iCl4r7cV066VrrdLNq/3uwFw+XIV3ogA3b7qBioo3XBLFpYs7 PiR44+Ztr2v0jZx0Ggo9hzMS7MTw4bL4LrWAfFXBj9EIGcbPLEAX3pbCv5HA5RfYOMki hUwp1E+NqLUyGd7sm505nWiapiC9JxsWlyP0w= MIME-Version: 1.0 Received: by 10.210.63.18 with SMTP id l18mr896851eba.71.1246539201093; Thu, 02 Jul 2009 05:53:21 -0700 (PDT) In-Reply-To: <85073B28-671D-4A8F-B2D6-5704E3E180BB@ilia.ws> References: <85073B28-671D-4A8F-B2D6-5704E3E180BB@ilia.ws> Date: Thu, 2 Jul 2009 13:53:01 +0100 Message-ID: To: Ilia Alshanetsky Cc: PHP Internals , Derick Rethans , Stanislav Malyshev , Hannes Magnusson Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: Flexible type hinting From: paul.biggar@gmail.com (Paul Biggar) 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