Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33589 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69316 invoked by uid 1010); 3 Dec 2007 17:47:24 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 69275 invoked from network); 3 Dec 2007 17:47:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Dec 2007 17:47:24 -0000 Authentication-Results: pb1.pair.com smtp.mail=helly@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=helly@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 85.214.94.56 as permitted sender) X-PHP-List-Original-Sender: helly@php.net X-Host-Fingerprint: 85.214.94.56 aixcept.net Linux 2.6 Received: from [85.214.94.56] ([85.214.94.56:49591] helo=h1149922.serverkompetenz.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C1/2B-25012-33A34574 for ; Mon, 03 Dec 2007 12:17:40 -0500 Received: from dhcp-172-28-204-176.zrh.corp.google.com (unknown [193.142.125.1]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by h1149922.serverkompetenz.net (Postfix) with ESMTP id 01DB61B3658; Mon, 3 Dec 2007 18:17:36 +0100 (CET) Date: Mon, 3 Dec 2007 18:17:36 +0100 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <1624722559.20071203181736@marcus-boerger.de> To: "Jordan Wambaugh" CC: internals@lists.php.net In-Reply-To: <00bb01c835cb$9fb14fd0$df13ef70$@org> References: <00bb01c835cb$9fb14fd0$df13ef70$@org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Object Oriented standard Library From: helly@php.net (Marcus Boerger) Hello Jordan, have a look at the SPL extension (Standard PHP Library) which introduces a few things (for instance SplFile). Have a look here: http://php.net/~helly I do not think we need a string class right now unless you want to provide a full unicode one that later works with HEAD seamingly. If you are intersted, then the ArrayObject/ArrayIterator implementation in SPL can be made much faster. I know what to do but have no time for that... and as always, help is always welcome here and if you have something to show, then show us :-) marcus Monday, December 3, 2007, 5:43:19 PM, you wrote: > I am currently working on a Object-Oriented Library extension that wraps a > lot of functionality in PHP's standard library dealing with strings, > arrays, fileIO, etc. into classes. > (String class, Collection class, etc.) > This would allow end-users to create objects that represent data types and > resources, and take advantage of all the benefits of OOP (object chaining, > polymorphism, etc) all in a c compiled extension. > Example: > $myString=new String("Hello world!"); > $myLowerCaseString = > $myString->copy()->replace("world","universe")->lowerCase(); > > > > The goal of this project is to help PHP mature into a more object-oriented > language with an object oriented library, while addressing a common > complaint about the standard library not being very consistent > (http://en.wikipedia.org/wiki/Php#Criticism [8th bullet]) > > I have already implemented a couple classes, but would like to get feedback > from the PHP development community on the idea of creating such a library > for PHP. Also, any suggestions would be greatly appreciated. > > Thanks, > > Jordan Wambaugh > > Best regards, Marcus