Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:42684 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 43343 invoked from network); 18 Jan 2009 16:42:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Jan 2009 16:42:15 -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:40866] helo=bigtime.backendmedia.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2F/C0-51537-5EB53794 for ; Sun, 18 Jan 2009 11:42:14 -0500 Received: from localhost (unknown [127.0.0.1]) by bigtime.backendmedia.com (Postfix) with ESMTP id 3F075414405C; Sun, 18 Jan 2009 16:42:26 +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 UWEovd+ebI4O; Sun, 18 Jan 2009 17:42:25 +0100 (CET) Received: from [192.168.0.151] (77-58-151-147.dclient.hispeed.ch [77.58.151.147]) (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 5C6A7414405A; Sun, 18 Jan 2009 17:42:24 +0100 (CET) Cc: internals@lists.php.net Message-ID: To: Nathan Rixham In-Reply-To: <58.5A.41390.72012794@pb1.pair.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Date: Sun, 18 Jan 2009 17:42:05 +0100 References: <58.5A.41390.72012794@pb1.pair.com> X-Mailer: Apple Mail (2.930.3) Subject: Re: [PHP-DEV] Really Need.. From: mls@pooteeweet.org (Lukas Kahwe Smith) On 17.01.2009, at 18:06, Nathan Rixham wrote: > a: Optional Static Typing > I'm finding an ever increasingly need to be able to staticly type > properties, parameters, return types etc (in classes) I know there > is type hinting but it's just not enough to do what one needs. > Additionally support for staticly typing primatives. I am not a type hinting fan .. then again I think that PPP is mostly bogus for a scripting language as well. I would not mind this stuff if it would just all just throw E_STRICT's instead of E_FATAL. To me the point of a glue language is to keep running until the engine is about to explode or the request has finished. > b: Object superclass > A base class type which all objects automagically extend, with (if > nothing else) a unique id / hashcode for each object. Failing this > some form of function to get a unique reference string for any > variable. I think this is quite pointless. I do not see any need for magic here. No need to be able to magically redefine the base class and saving the few chars to type is also not sensible (and this will not give you MI through the backdoor either). > c: Method overloading > TBH it's something I could live without, whereas a/b aren't, but it > would be an ideal addition to php; Many times I've had to work > around the lack of this functionality with (what could be) unneeded > code. You mean polymorphism? I hope we will never see that in PHP. This kind of magic is dangerous and just forces PHP even more into a static typed corner. Maybe you need to whip up a patch for your PHP version that makes PHP statically typed? > regards, Lukas