Re: PHP 6.0 Wishlist

From: Date: Sat, 13 Aug 2005 12:52:51 +0000
Subject: Re: PHP 6.0 Wishlist
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-17960@lists.php.net to get a copy of this message
On 8/13/05 2:25 AM, "Ilia Alshanetsky" <ilia@prohost.org> wrote: > Why would I need name spaces for basic functions, just so that I need to > rename all my code to use str:replace rather then str_replace and > perform 2 hash table lookups? > Or maybe so that you don't have to look at the manual fifteen times a minute so that you can remember whether the needle goes before the haystack in a particular function or not. I'm not saying it's the perfect solution, but it's a good opportunity to clean things up a bit. Or it can be done in the global namespace and forget about namespaces altogether--I don't care much for them either, but I do think that consistent function naming and parameter ordering is an opportunity worth taking advantage of, that's all. Marco > Ilia > > Marco Tabini wrote: >> Hey Ilia, >> >> On 8/12/05 3:03 PM, "Ilia Alshanetsky" <ilia@prohost.org> wrote: >> >>> -1 to namespaces. As for modifying functions that would require a fair >>> number of function aliases for BC as untold number of scripts will >>> break. That is something we are trying to eliminate in the first place. >>> >> >> >> >> With namespaces, wouldn't the problem go away altogether? Old function names >> can be deprecated and E_STRICT'ed and a new, uniform naming convention and >> parameter order be enforced for the future. I hate namespaces but this >> sounds like a good solution to me. >> >> >> Mt. >> >> >> >> -- Marco Tabini President & CEO Marco Tabini & Associates, Inc. 28 Bombay Ave. Toronto, ON M3H 1B7 Canada Phone: +1 (416) 630-6202 Fax: +1 (416) 630-5057

« previous php.internals (#17960) next »