Re: php7- dropping the $ from the variable name - rfc
| From: | sotiris karavarsamis | Date: | Sat, 20 Sep 2008 18:21:51 +0000 |
| Subject: | Re: php7- dropping the $ from the variable name - rfc | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-40579@lists.php.net to get a copy of this message | ||
Guilherme Blanco wrote:
@sotiris: explain me how will does this be handled: $array_pop = 'foo'; $test = $array_pop($arrayFoo); // $test = foo($arrayFoo); if you remove the $.... array_pop = 'foo'; test = array_pop(arrayFoo); // huh?!?!?! Guilherme,I suggest keeping the $ sign in the syntax scheme of PHP; that is clear in my prior responses. Why do you actually ask this? Changing the way variables are denoted by stripping the dollar sign obviously breaks previous syntax functionality offered by PHP (indirect function calls through variables).
Cheers, On Sat, Sep 20, 2008 at 2:59 PM, sotiris karavarsamis <bri@cshell.gr> wrote:Marco wrote: So don't you consider this a serious reason against stripping/changing the dollar sign? Do you think that would be a good effect for PHP users if that change would exist in a future version of PHP (even in PHP6!)? It's a simple change but a great shift!Hey, why not make it configurable (ini option) ?! :DI really do not find it reasonable to change the dollar sign to something else. If we could switch the dollar sign notation in variables on and off with a directive in php.ini, that would break backwards compatibility between apps not only in a single user environments but also in shared hosting envs. Imagine having to switch into dollar sign notation for a phpbb installation and to a notation without the dollar sign for a custom application. It's just crazy! http://en.wikipedia.org/wiki/Sarcasm ... I hope :-DI'm not being sarcastic, if you mean it. :pRegards Marco-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php