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 and people gave plenty of points for that. Here is
summary:
1). Break every application.
2). Break highlight.
3). Make almost imposible for parser to replace variables with their
contents in " " and HEREDOC constructions. Well, it can be done, but it will
make a huge slowdown and memory usage.
4). Adding $ before variable doesn't take any time for any experienced in
PHP developer
5). Variables are seen clearly in code.
6). Hey, you can use $ in JS too! It just works! :)

2008/9/18 Ionut Gabriel Stan <[EMAIL PROTECTED]>

> 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'll
> live with it as I did until now.
>
> Cheers,
> I. Stan
>
>
>
>
> ----- Original Message ----
> From: Brian Moon <[EMAIL PROTECTED]>
> To: mike <[EMAIL PROTECTED]>
> Cc: marius popa <[EMAIL PROTECTED]>; internals@lists.php.net
> Sent: Thursday, September 18, 2008 9:06:11 PM
> Subject: Re: [PHP-DEV] php7- dropping the $ from the variable name - rfc
>
> 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 spend the very least.
> http://dealnews.com/
>
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

Reply via email to