On Mon, Nov 1, 2010 at 9:47 PM, Felipe Pena <felipe...@gmail.com> wrote:

> 2010/11/1 Richard Lynch <c...@l-i-e.com>
>
> > On Fri, October 29, 2010 7:47 pm, admin wrote:
> > > WTF is T_PAAMAYIM_NEKUDOTAYIM?
> > >
> > > This has to be THE most asked question by new php developers when they
> > > come across it.  Can we please change the token name to T_DOUBLE_COLON
> > > so I don't have to hear about it constantly?
> > >
> > > Those that disagree don't do enough PHP support to know how often it
> > > is
> > > asked. it's worth it.
> >
> > -1
> >
> >
> Instead of renaming the token, I prefer to associate a literal string to
> each token, to have a legible error message, without the T_ being shown.
>
> For example, we could use in the Bison grammar file:
> %token T_PAAMAYIM_NEKUDOTAYIM "::"
>
> So that the error message become:
>
> $ sapi/cli/php -r '::'
> Parse error: syntax error, unexpected :: in Command line code on line 1
>
> Instead of the known "unexpected T_PAAMAYIM_NEKUDOTAYIM" one.
>
>
>
Thanks Felipe, you are my hero.
Anybody else thinks that this thread is very similar to the last array
dereferencing discussion?
http://www.mail-archive.com/internals@lists.php.net/msg46789.html

Somebody brought up the idea, most of the veterans tried to dismiss without
discussion, pointing out, that its an old topic, and nothing will change,
status quo, others tried to bend the thread to the lemon patch.
and Felipe solved the original problem that everybody thought impossible, or
much harder, than it was actually.

so I think we should ask Felipe more about the unsolvable problems in PHP,
and maybe we shouldn't stop discussions about old topics, because maybe the
environment around the problems changed with time.

Tyrael

Reply via email to