On Thu, 19 Jul 2007 23:16:33 +0200, Tijnema <[EMAIL PROTECTED]> wrote:
> On 7/19/07, Stanislav Malyshev <[EMAIL PROTECTED]> wrote:
>
>> > I consider block scope a sort of "namespaces light", an easy to
>> > understand first step. As JS 2 will have the "let" keyword - and to
> most
>> > newbies
On 7/19/07, Stanislav Malyshev <[EMAIL PROTECTED]> wrote:
> I consider block scope a sort of "namespaces light", an easy to
> understand first step. As JS 2 will have the "let" keyword - and to most
> newbies JS will be the principal "other" language besides PHP - a
> similar construct would be
> 2. Block scope is part of quite a few languages. Does it serve any
purpose in C, C# or Java? Does "my" and "local" serve any purpose in
PERL? [1]
Funny that you ask, because Perl docs you linked specifically say
"local" does not serve any real purpose, is extremely confusing and they
have i
The reason I posted my suggestions on this list was that a while ago I
had a few ideas as to how PHP could be improved. A seasoned PHP
developer suggested that I'd take my suggestions to this list.
Thanks a lot for your suggestions, but (as you can see from the list) we have a lot of other th
Do you have a patch?
On 19.07.2007 16:26, Keryx Web wrote:
Daniel Jänecke skrev:
> I don't get the point of it. IMO this will only add another level of
> confusion to sourcecode; unless someone has a real good example (better
> than those in the posted link) where this technique is required I
Daniel Jänecke skrev:
> I don't get the point of it. IMO this will only add another level of
> confusion to sourcecode; unless someone has a real good example (better
> than those in the posted link) where this technique is required I cannot
> see which benefit this feature adds.
>
1. Neither dan
I don't get the point of it. IMO this will only add another level of
confusion to sourcecode; unless someone has a real good example (better
than those in the posted link) where this technique is required I cannot
see which benefit this feature adds.
regards
danielj
Keryx Web wrote:
> Hi again!
>
Now that namespaces seem to be on their way into PHP 6 I wonder if
let-blocks, as in JavaScript 1.7+, ever has been considered for PHP, to
hide global variables from each other?
I personally am not convinced that PHP has any need for convoluted
scoping rules that "let" creates. What would be a
Hi again!
Now that namespaces seem to be on their way into PHP 6 I wonder if
let-blocks, as in JavaScript 1.7+, ever has been considered for PHP, to
hide global variables from each other?
If so, can someone point me to the discussion?
For those that might have missed JS 1.7:
http://develope