Re: PHP global namespace clogged up

From: Tim Tyler (tim_at_tt1lock.org)
Date: 09/07/04


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.


Relevant Pages

  • Re: Logging deletes...
    ... found my mistake. ... This solution is perfect for my clients now I need to ... >>Hugo, what am I missing? ... > Hi Chris, ...
    (microsoft.public.sqlserver.programming)
  • Re: All stuck in outgoing Queue
    ... My fault, missed an obvious mistake. ... and had not changed the recipient policy. ... Chris ...
    (microsoft.public.exchange.admin)
  • Re: Manbat #3 - Central Time??
    ... Did I get it backwards? ... Chris C. ... WHY it wasn't really a mistake to get the No-Prize. ...
    (rec.arts.comics.dc.universe)
  • Re: "Having an eye in criticism is as important as having an ear in music. It means discerning the o
    ... My mistake, once it's summarized, no one can ever read the original ... chris wrote: ... over the heads of most readers in terms of the ... > admit that even I am cheating, having not read them in the original ...
    (rec.arts.fine)
  • Re: OT: Im back
    ... except the links to family vacation photos I ... it sure would've been pathetic for RASSM if Chris had posted his ... photos here by mistake also... ... Welcome back, Chris, and good luck with everything... ...
    (rec.arts.sf.starwars.misc)