Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:40555 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 43074 invoked from network); 18 Sep 2008 19:09:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Sep 2008 19:09:36 -0000 Authentication-Results: pb1.pair.com smtp.mail=arvids.godjuks@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=arvids.godjuks@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 66.249.92.172 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: arvids.godjuks@gmail.com X-Host-Fingerprint: 66.249.92.172 ug-out-1314.google.com Received: from [66.249.92.172] ([66.249.92.172:2445] helo=ug-out-1314.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A8/23-27158-C67A2D84 for ; Thu, 18 Sep 2008 15:09:35 -0400 Received: by ug-out-1314.google.com with SMTP id k3so813340ugf.37 for ; Thu, 18 Sep 2008 12:09:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=pC+R2yz9dpe3R7eZh8gCsVk5O5WpKicR4/x81PphxFI=; b=oRh54E9J2ERqiUYMeWzCdq9wJ/AijTZ7vrfG1tG62PPerTBaJbuSQbQdVoMOlvBxU2 jpyCWYGq4eSTzIhTJQcB6CyM8dNvIk8gxTlF14IFFIdTHl2n6tqEYSLb+awjcvrKMU7B QD7qvOm2ELCCI86w8R3Q5UhLz8TVHsT1C8FkM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=dUKWs0FCWCjhosXp+V5NUe/+Os4zp4ktqCKmavKFgMYBp6Y32X3jwRNJE4dYRpR9gt hZUKC2JRTGifUQoY3HVlVdIFnQQrQyFOXSQnINwvG4STQixLKYTuATj6TO2F2aLD9HDm f3bLYdkR8d+FGzeovTi2yUyok68MxaAR4fO+4= Received: by 10.66.255.11 with SMTP id c11mr921717ugi.41.1221764969293; Thu, 18 Sep 2008 12:09:29 -0700 (PDT) Received: by 10.67.29.1 with HTTP; Thu, 18 Sep 2008 12:09:29 -0700 (PDT) Message-ID: <9b3df6a50809181209q18b63644ya14c7f609a95f8b9@mail.gmail.com> Date: Thu, 18 Sep 2008 22:09:29 +0300 To: "Ionut Gabriel Stan" Cc: "Brian Moon" , mike , "marius popa" , internals@lists.php.net In-Reply-To: <962975.69490.qm@web36405.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_13241_441398.1221764969228" References: <962975.69490.qm@web36405.mail.mud.yahoo.com> Subject: Re: [PHP-DEV] php7- dropping the $ from the variable name - rfc From: arvids.godjuks@gmail.com ("Arvids Godjuks") ------=_Part_13241_441398.1221764969228 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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). 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 > 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 > To: mike > Cc: marius popa ; 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 > > ------=_Part_13241_441398.1221764969228--