Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:40579 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63389 invoked from network); 20 Sep 2008 18:21:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Sep 2008 18:21:46 -0000 Authentication-Results: pb1.pair.com header.from=bri@cshell.gr; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=bri@cshell.gr; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain cshell.gr from 195.130.121.123 cause and error) X-PHP-List-Original-Sender: bri@cshell.gr X-Host-Fingerprint: 195.130.121.123 pc123.cs.uoi.gr Linux 2.5/2.6 (sometimes 2.4) (2) Received: from [195.130.121.123] ([195.130.121.123:3091] helo=cshell.gr) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D6/9E-65213-83F35D84 for ; Sat, 20 Sep 2008 14:21:45 -0400 Received: from [192.168.1.110] (dsl-201-248.adsl.uoi.gr [83.212.201.248]) by cshell.gr (Postfix) with ESMTPSA id A6FE1EF885; Sat, 20 Sep 2008 21:21:18 +0300 (EEST) Message-ID: <48D53F3F.1070006@cshell.gr> Date: Sat, 20 Sep 2008 21:21:51 +0300 User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Guilherme Blanco CC: Marco , jani.taskinen@iki.fi, Marcus Boerger , internals@lists.php.net References: <962975.69490.qm@web36405.mail.mud.yahoo.com> <6973016.20080920004704@marcus-boerger.de> <48D4FE18.7080404@sci.fi> <21a817cacf54bb91d3a8c8d635ba786d@cshell.gr> <2fd662a00809200927j34a1500dvb6ea7f08a87ebc62@mail.gmail.com> <48D53A19.30102@cshell.gr> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] php7- dropping the $ from the variable name - rfc From: bri@cshell.gr (sotiris karavarsamis) 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 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 >> >> >> > > > >