[PHP-DEV] php7- dropping the $ from the variable name - rfc

2008-09-18 Thread marius popa
I was looking at the examples used in php.js library http://phpjs.org/functions/index and it struck me that is cleaner to read the functions and code without the $ names in it From what i understand $ in front of variables is an Perl legacy -- developer flamerobin.org

Re: [PHP-DEV] php7- dropping the $ from the variable name - rfc

2008-09-18 Thread Rasmus Lerdorf
marius popa wrote: I was looking at the examples used in php.js library http://phpjs.org/functions/index and it struck me that is cleaner to read the functions and code without the $ names in it From what i understand $ in front of variables is an Perl legacy And how do you propose to do

Re: [PHP-DEV] php7- dropping the $ from the variable name - rfc

2008-09-18 Thread Kristian Köhntopp
On 18.09.2008, at 16:58, Rasmus Lerdorf wrote: And how do you propose to do string interpolation? You could do it using an interpolation operator in String constants. echo This is a #{var} in a string.; /* Ruby does it using this */ But why break compatibility for a purely aesthetical

Re: [PHP-DEV] php7- dropping the $ from the variable name - rfc

2008-09-18 Thread mike
On Thu, Sep 18, 2008 at 7:47 AM, marius popa [EMAIL PROTECTED] wrote: I was looking at the examples used in php.js library http://phpjs.org/functions/index and it struck me that is cleaner to read the functions and code without the $ names in it From what i understand $ in front of

Re: [PHP-DEV] php7- dropping the $ from the variable name - rfc

2008-09-18 Thread Brian Moon
mike wrote: Personally I love the $. It makes it so much easier to identify variables. It's a single character. Can't see the need honestly to even bring this up. +1,000,000. Horrible idea. *facepalm* -- Brian Moon Senior Web Engineer -- When you care enough to

Re: [PHP-DEV] php7- dropping the $ from the variable name - rfc

2008-09-18 Thread Jordan Moore
On Thu, Sep 18, 2008 at 11:06 AM, Brian Moon [EMAIL PROTECTED] wrote: mike wrote: Personally I love the $. It makes it so much easier to identify variables. It's a single character. Can't see the need honestly to even bring this up. +1,000,000. Horrible idea. *facepalm* -- Brian Moon

Re: [PHP-DEV] php7- dropping the $ from the variable name - rfc

2008-09-18 Thread Ionut Gabriel Stan
Actually, I somehow understand what he wants, considering we'll soon have lambdas and closures. I mean, in case of javascript a variable can hold as well a function as it can hold anything else. Anyway, I don't think this is the case for PHP. I do find it ugly to write $function(), but I guess

Re: [PHP-DEV] php7- dropping the $ from the variable name - rfc

2008-09-18 Thread Michael Wallner
mike wrote: ... Would you mind using your full name or something else? Thanks :) Not that I'd have a (tm) on mike, but anyway... Cheers, Mike -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] [Fwd: [PATCH] Backport of HEADs output API]

2008-09-18 Thread Michael Wallner
In case the original with patches attached doesn't get through: http://dev.iworks.at/PATCHES/php53-backport_output.txt http://dev.iworks.at/PATCHES/pecl-backport_output.txt Original Message Subject: [PATCH] Backport of HEADs output API Date: Thu, 18 Sep 2008 20:51:45 +0200

Re: [PHP-DEV] php7- dropping the $ from the variable name - rfc

2008-09-18 Thread mike
Thu, Sep 18, 2008 at 11:52 AM, Michael Wallner [EMAIL PROTECTED] wrote: Would you mind using your full name or something else? Thanks :) Not that I'd have a (tm) on mike, but anyway... i have to give props to you having [EMAIL PROTECTED], but as of right now i am not ready to make the

Re: [PHP-DEV] php7- dropping the $ from the variable name - rfc

2008-09-18 Thread Arvids Godjuks
Well, you can do that right now, PHP supports that for ages. ?php $myVar = 'print'; $myVar('Hello!'); // Outputs hello ? So lamdas realy do not change anything in this context. What they do is make our life easier by making us able to live without create_function(). Anyway, removing $ is bad

Re: [PHP-DEV] php7- dropping the $ from the variable name - rfc

2008-09-18 Thread Alain Williams
On Thu, Sep 18, 2008 at 11:30:37AM -0700, Ionut Gabriel Stan wrote: Actually, I somehow understand what he wants, considering we'll soon have lambdas and closures. I mean, in case of javascript a variable can hold as well a function as it can hold anything else. Anyway, I don't think this

Re: [PHP-DEV] php7- dropping the $ from the variable name - rfc

2008-09-18 Thread troels knak-nielsen
On Thu, Sep 18, 2008 at 9:09 PM, Arvids Godjuks [EMAIL PROTECTED] wrote: Well, you can do that right now, PHP supports that for ages. ?php $myVar = 'print'; $myVar('Hello!'); // Outputs hello ? Partly because I can't resist being smug, partly because it might confuse someone, I have to

Re: [PHP-DEV] Re: Namespaced function vs static method in global class

2008-09-18 Thread Ionut Gabriel Stan
Thanks for your answer guys, they answered my questions. Hopefully any introduction in the language of a __getStatic() and __setStatic() won't make things even more confusing. Thanks also for the effort you put in developing PHP, I really appreciate it. Cheers, I. Stan - Original

Re: [PHP-DEV] php7- dropping the $ from the variable name - rfc

2008-09-18 Thread Jordan Moore
On Thu, Sep 18, 2008 at 12:25 PM, troels knak-nielsen [EMAIL PROTECTED] wrote: On Thu, Sep 18, 2008 at 9:09 PM, Arvids Godjuks [EMAIL PROTECTED] wrote: Well, you can do that right now, PHP supports that for ages. ?php $myVar = 'print'; $myVar('Hello!'); // Outputs hello ? Partly because

[PHP-DEV] Re: php7- dropping the $ from the variable name - rfc

2008-09-18 Thread Greg Beaver
marius popa wrote: I was looking at the examples used in php.js library http://phpjs.org/functions/index and it struck me that is cleaner to read the functions and code without the $ names in it From what i understand $ in front of variables is an Perl legacy This would also eliminate