Re: Idea to extend language: Explicitly setting variable scope inside user defined function (longer)
| From: | NTPT | Date: | Mon, 21 Oct 2002 16:18:33 +0000 |
| Subject: | Re: Idea to extend language: Explicitly setting variable scope inside user defined function (longer) | ||
| References: | 1 2 3 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-89807@lists.php.net to get a copy of this message | ||
----- Original Message -----
From: "Maxim Maletsky" <maxim@php.net>
To: "Marco Tabini" <marcot@tabini.ca>
Cc: "Rasmus Lerdorf" <rasmus@php.net>; "NTPT" <ntpt@centrum.cz>;
<php-dev@lists.php.net>
Sent: Monday, October 21, 2002 12:37 PM
Subject: Re: [PHP-DEV] Idea to extend language: Explicitly setting variable
scope inside user defined function (longer)
>
> Well, in a way it is right to have this, but in a way it get things more
> difficult for newbies to start. I prefer PHP handling variables the way
> it does right now.
My suggestion is optional. Programmer can use it. can != must. ie if he do
not need this feature, he do not use var_scope keyword and everything should
work as normal.
> Maybe something like what is suggested can be
> optional, but I don't think it is really doable as to be "an option".
>
> --
> Maxim Maletsky
> maxim@php.net
>
> www.PHPBeginner.com // where PHP Begins
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
---
Odchozí zpráva neobsahuje viry.
Zkontrolováno antivirovým systémem AVG (http://www.grisoft.cz).
Verze: 6.0.401 / Virová báze: 226 - datum vydání: 9.10.2002