Re: [PHP-LANG] Legal variable names

[email protected] (Andi Gutmans)
Newsgroups php.lang
Message-ID <[email protected]>
At 16:49 22/11/00 +0100, Sascha Schumann wrote:
>On Wed, 22 Nov 2000, Stanislav Malyshev wrote:
>
> > AL>> you don't hinder me doing ${' asdf asdlkfj'}=5; so why should you 
> strip
> > AL>> leading spaces?
> >
> > That's what I was asking. I just am rather careful there because somebody
> > wrote that code so he should have meant something by it - maybe there are
> > reasons I'm not aware of.
>
>     With regard to php-lang, are there any opinions on whether
>     a construct like this should be legal?
>
>         '${' expression '}'
>
>     where expression evaluates to an arbitrary string, not
>     necessarily to an identifier (which is basically
>     [a-z][a-z0-9]*).

Yep it should be legal.
I'll try and find time on the weekend to look over what you have written.
Once it's done we should discuss what and how we work on the next step 
(constructs, scoping and so on).

Andi
---
Andi Gutmans <[email protected]>
http://www.zend.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.