Re: [PHP-DEV] UltraSimple Namespace Solution

2008-10-18 Thread Nathan Rixham
Gregory Beaver wrote: Nathan Rixham wrote: seen. Personally though I'd love to see stas' #1 get implemented and "->" used for all functions in a namespace so.. one::step::two(); //always static method of class one::step->two(); //always function of namespace. But it's still ambiguous (only i

Re: [PHP-DEV] UltraSimple Namespace Solution

2008-10-18 Thread Gregory Beaver
Nathan Rixham wrote: > seen. Personally though I'd love to see stas' #1 get implemented and > "->" used for all functions in a namespace so.. > one::step::two(); //always static method of class > one::step->two(); //always function of namespace. > > But it's still ambiguous (only in a rarely thoug

Re: [PHP-DEV] UltraSimple Namespace Solution

2008-10-18 Thread Nathan Rixham
Ronald Chmara wrote: On Oct 17, 2008, at 3:53 AM, Nathan Rixham wrote: *A Simpler Solution* Force userland / general naming conventions in PHP. # namespaces are always lowercase # functions are always lowercase # classes are always CamelCaps with initial uppercase letter enforced thus: //thi

Re: [PHP-DEV] UltraSimple Namespace Solution

2008-10-17 Thread Ronald Chmara
On Oct 17, 2008, at 3:53 AM, Nathan Rixham wrote: *A Simpler Solution* Force userland / general naming conventions in PHP. # namespaces are always lowercase # functions are always lowercase # classes are always CamelCaps with initial uppercase letter enforced thus: //this is always the functi

Re: [PHP-DEV] UltraSimple Namespace Solution

2008-10-17 Thread Vesselin Kenashkov
AFAIK the classes and the namespaces both are case insensitive. This means a major change (to make them to be kept in a sensitive way) and will break the code that depends on the insensibility. IMHO - bad idea. And besides the casing usially is used to enforce good coding practices, not language fe

Re: [PHP-DEV] UltraSimple Namespace Solution

2008-10-17 Thread Derick Rethans
On Fri, 17 Oct 2008, Nathan Rixham wrote: > thoughts, opinions, reasons why it wouldn't work? Posts like this want me to shutdown this list, start a new one, hide it, and make it invite only. Derick -- HEAD before 5_3!: http://tinyurl.com/6d2esb http://derickrethans.nl | http://ezcomponents.o

Re: [PHP-DEV] UltraSimple Namespace Solution

2008-10-17 Thread Ron Rademaker
Nathan Rixham wrote: thus: //this is always the function two in namespace one::step one::step::two(); //this is always the method two of class step in namespace one one::Step::two(); thoughts, opinions, reasons why it wouldn't work? Though: this will break a awful lot of existing code Opinion

[PHP-DEV] UltraSimple Namespace Solution

2008-10-17 Thread Nathan Rixham
*The Problem (as defined by Greg):* foo.php: main.php: *A Simpler Solution* Force userland / general naming conventions in PHP. # namespaces are always lowercase # functions are always lowercase # classes are always CamelCaps with initial uppercase letter enforced thus: //this is always th