Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49296 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 91284 invoked from network); 10 Aug 2010 23:42:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Aug 2010 23:42:11 -0000 Authentication-Results: pb1.pair.com header.from=phpwnd@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=phpwnd@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.83.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: phpwnd@gmail.com X-Host-Fingerprint: 74.125.83.170 mail-pv0-f170.google.com Received: from [74.125.83.170] ([74.125.83.170:47287] helo=mail-pv0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BD/C0-20356-1D3E16C4 for ; Tue, 10 Aug 2010 19:42:10 -0400 Received: by pvg16 with SMTP id 16so1564331pvg.29 for ; Tue, 10 Aug 2010 16:42:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=0Jr4E1sBrud1mwkHmKevcclpljd78igH9JfgWVoKrBc=; b=QExDK1uPDEZbxyj40P4Sk2/FCaRK3hMBVD2jNEKiadMHi5JCrpFml0cXQXZ6ZtwEma HSiDcHLi5TFByvYLphJhz6TmkevbpasxBNLIDFLbgZYg1BLts8Kype1CtniQ+2y8rE2X zET4olaN+jA8CuFhbK5/gW4PErF/548MHda7c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=MIh6HrpAsqNpHldsXYFJnfk4uEuqxkDuMYAz7yVI8D29nQRy3erAuXKYq74XnfEVy3 LwlWyfkcnhEXkoFaT0ehzUy8aaFroxPWsF6B2DA+u38pAtrUW55119J8rucV7wdmWlz2 IbXGAVd7tjMhDhdo/c8sC/b5UyJigBjcH9nKE= MIME-Version: 1.0 Received: by 10.114.109.6 with SMTP id h6mr4953867wac.75.1281483727391; Tue, 10 Aug 2010 16:42:07 -0700 (PDT) Received: by 10.114.154.9 with HTTP; Tue, 10 Aug 2010 16:42:07 -0700 (PDT) In-Reply-To: References: <1281478269.6608.292.camel@guybrush> Date: Wed, 11 Aug 2010 01:42:07 +0200 Message-ID: To: Arvids Godjuks Cc: Internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Typehints (was Re: [PHP-DEV] Annoucing PHP 5.4 Alpha 1) From: phpwnd@gmail.com (Josh Davis) Derick's point was about consistency. The approach described in his mail is consistent with current syntax and mechanism(s). Current typehints do not apply any kind of conversion, so treating scalar hints the same way is consistent with the current mechanism. Reusing the typecasting syntax for typecasting "hints" makes them more familiar to the users, and it is less ambiguous than a typehint that sometimes also typecasts. Plus, it allows for both "strict" typechecking and the more relaxed typecasting thing instead of forcing one. And all of that with a syntax that feels familiar. That, I believe, was his point. -JD