Re: PHP global namespace clogged up
From: Tim Tyler (tim_at_tt1lock.org)
Date: 09/07/04
- Next message: Tim Tyler: "Re: PHP global namespace clogged up"
- Previous message: R. Rajesh Jeba Anbiah: "Re: Extract data from XHTML tag"
- In reply to: Chris Hope: "Re: PHP global namespace clogged up"
- Next in thread: Chris Hope: "Re: PHP global namespace clogged up"
- Reply: Chris Hope: "Re: PHP global namespace clogged up"
- Reply: Michael Fesser: "Re: PHP global namespace clogged up"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 7 Sep 2004 06:02:53 GMT
Chris Hope <blackhole@electrictoolbox.com> wrote or quoted:
> Tim Tyler wrote:
> > C++ and PHP's "->" is harder to read and type :-(
>
> Depending on the context, I find -> just as easy to read as . although I do
> agree . is easier to type.
>
> There is a reason the PHP developers chose to use -> instead of . - the .
> operator was already used for string concatenation eg $a.$b [...]
Not a good move either.
> Not to mention it probably would have caused parse errors if using
> $a.$b (ie no spaces between the variables) and broken a lot of existing
> code.
The effect of one mistake has knock-on effects :-(
> But bitching about whether to use . or -> is just starting to get silly.
;-)
-- __________ |im |yler http://timtyler.org/ tim@tt1lock.org Remove lock to reply.
- Next message: Tim Tyler: "Re: PHP global namespace clogged up"
- Previous message: R. Rajesh Jeba Anbiah: "Re: Extract data from XHTML tag"
- In reply to: Chris Hope: "Re: PHP global namespace clogged up"
- Next in thread: Chris Hope: "Re: PHP global namespace clogged up"
- Reply: Chris Hope: "Re: PHP global namespace clogged up"
- Reply: Michael Fesser: "Re: PHP global namespace clogged up"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|