Re: php7- dropping the $ from the variable name - rfc
| From: | Guilherme Blanco | Date: | Sat, 20 Sep 2008 18:04:02 +0000 |
| Subject: | Re: php7- dropping the $ from the variable name - rfc | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-40577@lists.php.net to get a copy of this message | ||
@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?!?!?!
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) ?! :D
>>
>> I 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 :-D
>
> I'm not being sarcastic, if you mean it. :p
>>
>> Regards
>>
>> Marco
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Guilherme Blanco - Web Developer
CBC - Certified Bindows Consultant
Cell Phone: +55 (16) 9166-6902
MSN: guilhermeblanco@hotmail.com
URL: http://blog.bisna.com
Rio de Janeiro - RJ/Brazil