Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:34338 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 41020 invoked by uid 1010); 3 Jan 2008 19:23:40 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 41005 invoked from network); 3 Jan 2008 19:23:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Jan 2008 19:23:39 -0000 Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.94.239.7 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.94.239.7 mail.jdi-ict.nl Linux 2.6 Received: from [82.94.239.7] ([82.94.239.7:53018] helo=mail.jdi-ict.nl) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 49/8B-20810-8363D774 for ; Thu, 03 Jan 2008 14:23:37 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.jdi-ict.nl (8.13.7/8.12.11) with ESMTP id m03JNWXW029002; Thu, 3 Jan 2008 20:23:32 +0100 Date: Thu, 3 Jan 2008 20:23:32 +0100 (CET) X-X-Sender: derick@kossu.ez.no To: Stanislav Malyshev cc: Markus Fischer , internals@lists.php.net In-Reply-To: <477D2CDB.3000005@zend.com> Message-ID: References: <200801031903.01980.tomi@cumulo.fi> <1199380881.15292.11.camel@sbarrow-desktop> <20080103172813.GQ7861@mint.phcomp.co.uk> <477D2B40.9010302@fischer.name> <477D2CDB.3000005@zend.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=UTF-8 Subject: Re: [PHP-DEV] RE: Optional scalar type hinting From: derick@php.net (Derick Rethans) On Thu, 3 Jan 2008, Stanislav Malyshev wrote: > > When the type hint says I want an integer, then only integer should be > > accepted; no casting should be done. It may give predictable results > > Why people that want Java just don't use Java I wonder? PHP never was a strict > static typed language. Broken record perhaps? I am getting a bit tired of this "just use Java argument", it's perhaps even a bit arrogant. From what I read there is plenty of people that want type hints for static types - there's a few patches out there, it doesn't slow down the general case. So why should we *not* add it? (And yes, I changed my mind) regards, Derick -- Derick Rethans http://derickrethans.nl | http://ezcomponents.org | http://xdebug.org