Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44865 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 89315 invoked from network); 9 Jul 2009 12:01:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Jul 2009 12:01:07 -0000 Authentication-Results: pb1.pair.com header.from=mls@pooteeweet.org; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=mls@pooteeweet.org; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain pooteeweet.org from 88.198.8.16 cause and error) X-PHP-List-Original-Sender: mls@pooteeweet.org X-Host-Fingerprint: 88.198.8.16 bigtime.backendmedia.com Linux 2.6 Received: from [88.198.8.16] ([88.198.8.16:58636] helo=bigtime.backendmedia.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C8/83-27938-30CD55A4 for ; Thu, 09 Jul 2009 08:01:07 -0400 Received: from localhost (unknown [127.0.0.1]) by bigtime.backendmedia.com (Postfix) with ESMTP id B646F414405E; Thu, 9 Jul 2009 12:02:24 +0000 (UTC) X-Virus-Scanned: amavisd-new at backendmedia.com Received: from bigtime.backendmedia.com ([127.0.0.1]) by localhost (bigtime.backendmedia.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LBG3MXaLfg9A; Thu, 9 Jul 2009 14:02:24 +0200 (CEST) Received: from [192.168.20.2] (gprs37.swisscom-mobile.ch [193.247.250.37]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: mls@pooteeweet.org) by bigtime.backendmedia.com (Postfix) with ESMTP id 40878414405B; Thu, 9 Jul 2009 14:02:23 +0200 (CEST) Cc: Message-ID: To: "Dennis Haarbrink" In-Reply-To: <000001ca0082$f8c15a10$ea440e30$@nl> 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, 9 Jul 2009 14:00:59 +0200 References: <7.0.1.0.2.20090708224156.0ac5a438@zend.com> <7.0.1.0.2.20090709121921.0ae17d58@zend.com> <000001ca0082$f8c15a10$ea440e30$@nl> X-Mailer: Apple Mail (2.935.3) Subject: Re: [PHP-DEV] Type hinting - Request for Discussion From: mls@pooteeweet.org (Lukas Kahwe Smith) On 09.07.2009, at 12:49, Dennis Haarbrink wrote: > I'm a framework developer and I have great interest in type hinting/ > casting. > I'm all for clarity and strictness, but it should definitely be a > choice. > PHP is known for its easy learning curve, that is one of its big > powers and > that should remain unchanged. But the way I see it is that it can be > implemented without *requiring* you to use it, if you want to use type > hinting/casting go ahead, if you don't want it, well, leave that bit > alone. > If it comes with a minor performance hit, OK, i can live with that, > I agree > with Lukas in that aspect, you don't spend lots of time checking/ > casting > anyway. > As for hinting/casting would not be 'php-ish', i don't see it that > way, i > look at php as a language of possibilities, not restrictions. I think you misunderstood Zeev. He wasn't saying that this feature is not PHP-ish, he was specifically talking about "strict" type checking. regards, Lukas Kahwe Smith mls@pooteeweet.org