Re: [PHP] for the sake of conversation - syntax

2008-09-30 Thread Stut
On 30 Sep 2008, at 17:40, Nathan Rixham wrote: Stut wrote: Consider this... file1.php: package arse { class bandit { ... } } package nipple { class clamp { ... } } file2.php: import file1 as chest; Which package have I aliased as chest in file2.php? This could be

Re: [PHP] for the sake of conversation - syntax

2008-09-30 Thread tedd
At 3:36 PM +0100 9/30/08, Stut wrote: There was a cracking suggestion a week or so ago that the $ prefix for variables should be removed. Can you imagine the community backlash at such a pointless change!! -Stut Well... there's always one. I try hard not to be it. :-) I just learned the ot

Re: [PHP] for the sake of conversation - syntax

2008-09-30 Thread Nathan Rixham
Stut wrote: On 30 Sep 2008, at 16:57, Nathan Rixham wrote: Stut wrote: On 30 Sep 2008, at 14:00, Nathan Rixham wrote: Stut wrote: On 29 Sep 2008, at 12:47, Nathan Rixham wrote: import com.anotherdom.MysqlDbHandler as DbHandlerA; import com.somedom.DbHandler as DbHandlerB; # "as" makes this e

Re: [PHP] for the sake of conversation - syntax

2008-09-30 Thread Stut
On 30 Sep 2008, at 16:57, Nathan Rixham wrote: Stut wrote: On 30 Sep 2008, at 14:00, Nathan Rixham wrote: Stut wrote: On 29 Sep 2008, at 12:47, Nathan Rixham wrote: import com.anotherdom.MysqlDbHandler as DbHandlerA; import com.somedom.DbHandler as DbHandlerB; # "as" makes this easier impo

Re: [PHP] for the sake of conversation - syntax

2008-09-30 Thread Nathan Rixham
Stut wrote: On 30 Sep 2008, at 14:00, Nathan Rixham wrote: Stut wrote: On 29 Sep 2008, at 12:47, Nathan Rixham wrote: import com.anotherdom.MysqlDbHandler as DbHandlerA; import com.somedom.DbHandler as DbHandlerB; # "as" makes this easier import com.mydom.thatpackage.RssParser; # we don't have

Re: [PHP] for the sake of conversation - syntax

2008-09-30 Thread Stut
On 30 Sep 2008, at 14:00, Nathan Rixham wrote: Stut wrote: On 29 Sep 2008, at 12:47, Nathan Rixham wrote: import com.anotherdom.MysqlDbHandler as DbHandlerA; import com.somedom.DbHandler as DbHandlerB; # "as" makes this easier import com.mydom.thatpackage.RssParser; # we don't have to "as" Woul

Re: [PHP] for the sake of conversation - syntax

2008-09-30 Thread Nathan Rixham
Stut wrote: On 29 Sep 2008, at 12:47, Nathan Rixham wrote: Last week I got to thinking about PHP vs other languages.. sparing the details this is what I decided I'd like my code to look like :) [what *I* /as an OO developer/ need(?want)] Looks a lot like Java, not that that's a bad thing.

Re: [PHP] for the sake of conversation - syntax

2008-09-30 Thread Stut
On 29 Sep 2008, at 12:47, Nathan Rixham wrote: Last week I got to thinking about PHP vs other languages.. sparing the details this is what I decided I'd like my code to look like :) [what *I* /as an OO developer/ need(?want)] Looks a lot like Java, not that that's a bad thing. { Comple

[PHP] for the sake of conversation - syntax

2008-09-29 Thread Nathan Rixham
Afternoon All, Last week I got to thinking about PHP vs other languages.. sparing the details this is what I decided I'd like my code to look like :) [what *I* /as an OO developer/ need(?want)] xmlString = TidySpace::tidy_repair_string( $xml ); } } } } ?> all purely a made up e