Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44652 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 51140 invoked from network); 2 Jul 2009 14:03:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Jul 2009 14:03:03 -0000 Authentication-Results: pb1.pair.com smtp.mail=paul.biggar@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=paul.biggar@gmail.com; sender-id=pass; domainkeys=bad 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:53901] helo=mail-ew0-f227.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D7/87-16153-61EBC4A4 for ; Thu, 02 Jul 2009 10:03:03 -0400 Received: by ewy27 with SMTP id 27so1901532ewy.23 for ; Thu, 02 Jul 2009 07:03:00 -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=2EBApDBF+KdkzkSZUorJNzee3v8OMxVfcPr2xr0G6NU=; b=X5k1TmgjWge7Jydj8edPVyQxvxGkqG9Nl9NI+dNTRGw+hbMzSUjUgnyf1zd6nvJ3ax Lwgf0IkXKoGwZ4Xi6qjCNsmHLfqLvA0R8OIbDWCWKDskuK0RBpETCfdCG+ZTjbAXN9o7 4os9y+Js4jGIjUGiUCTaBhX21j5okI/ks1Ebs= 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=sHr+MabpGbyc5hXXY+XIvEhr8kAZh7T3VS5fAqHoRthtKbe33LpxBkeuQTCQaO5mWu AchP0/+gb1Btj023Q7ghXQtw35Cu332CDUzElNt5ebegj3kEQDybvO5cVYpUBV6b8535 qol43GcIDVzpZNr0wMpeLfXbj2yAJYsrM64zo= MIME-Version: 1.0 Received: by 10.210.40.10 with SMTP id n10mr988030ebn.79.1246543380072; Thu, 02 Jul 2009 07:03:00 -0700 (PDT) In-Reply-To: References: Date: Thu, 2 Jul 2009 15:02:40 +0100 Message-ID: To: Ilia Alshanetsky Cc: Lukas Kahwe Smith , PHP Internals , Derick Rethans , Stanislav Malyshev , Hannes Magnusson Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: Flexible type hinting From: paul.biggar@gmail.com (Paul Biggar) On Thu, Jul 2, 2009 at 1:53 PM, Ilia Alshanetsky wrote: > Paul's proposal is some part does not make sense because it allows weak type > hinting, which should not be used if you need type hinting. The whole idea > about type hinting is definition of strict interfaces, not loosely based > one. That's just my opinion, which admittedly I feel fairly strongly about. No, the idea of type hinting is that you hint to the user about what type the interface expects. You have implemented "strong type checking" instead. I wonder that you cannot see the conflict between the term "type hinting" and "strict interfaces". I would be happier if you renamed your patch "optional strong scalar type checking", which is what it is. I have described a system that allows "strong type checking", "type hinting", and "type casting", which I think is all the use cases. Thanks, Paul -- Paul Biggar paul.biggar@gmail.com