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
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 str
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 prob
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 v
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 s
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*
>
> --
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 I
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
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
From
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 offi
Well, you can do that right now, PHP supports that for ages.
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 and people gave plenty of points for that. Here is
summary:
1)
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 th
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.
>
> $myVar = 'print';
> $myVar('Hello!'); // Outputs hello
> ?>
Partly because I can't resist being smug, partly because it might
confuse someone, I have to po
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 Messag
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.
>>
>> > $myVar = 'print';
>> $myVar('Hello!'); // Outputs hello
>> ?>
>
> P
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 eliminat
16 matches
Mail list logo