Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:54380 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 90080 invoked from network); 4 Aug 2011 19:04:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Aug 2011 19:04:58 -0000 Authentication-Results: pb1.pair.com smtp.mail=dragoonis@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=dragoonis@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.177 as permitted sender) X-PHP-List-Original-Sender: dragoonis@gmail.com X-Host-Fingerprint: 209.85.216.177 mail-qy0-f177.google.com Received: from [209.85.216.177] ([209.85.216.177:44201] helo=mail-qy0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 02/00-24235-95DEA3E4 for ; Thu, 04 Aug 2011 15:04:58 -0400 Received: by qyk2 with SMTP id 2so930408qyk.8 for ; Thu, 04 Aug 2011 12:04:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=nEiJSB1dIcJ6JllgzKfKaR8fCkFKCooZTDC4g1VDkJs=; b=Q6tU3FftFmt740kZVfljtKxhN5yuKQAVHScIg5tTS1ml9fvuFuvp6YQ6251uXv6APG /v92Z+1mP7SvIuO2pB5SAC22C0UOYkS+4amhn7Y8Rpy7D5r5bVti6GPb/wuUEhybSc1N yOLD5na0elNmaW7D6Qy+Es9m2uUH5zRUA+lqs= MIME-Version: 1.0 Received: by 10.229.118.72 with SMTP id u8mr957782qcq.1.1312484694723; Thu, 04 Aug 2011 12:04:54 -0700 (PDT) Received: by 10.229.231.134 with HTTP; Thu, 4 Aug 2011 12:04:54 -0700 (PDT) In-Reply-To: References: <4E3A48F2.4000503@lerdorf.com> <4E3A8014.1030503@rotorised.com> <1312457975.1541.7.camel@guybrush> <4E3A9549.6010803@daylessday.org> <4E3A9AA9.4010802@daylessday.org> Date: Thu, 4 Aug 2011 20:04:54 +0100 Message-ID: To: dukeofgaming Cc: Gwynne Raskind , Antony Dovgal , internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] An implementation of a short syntax for closures From: dragoonis@gmail.com (Paul Dragoonis) On Thu, Aug 4, 2011 at 7:54 PM, dukeofgaming wrote= : > On Thu, Aug 4, 2011 at 1:47 PM, Gwynne Raskind w= rote: > >> On Thu, Aug 4, 2011 at 09:12, Antony Dovgal wrote: >> >>> =A0Btw, am I the only one to whom the proposed syntax seems kinda >> >>> hieroglyphic? >> >> No. I don't see at all why we need this, just like I don't see why we >> >> needed an alternative (short) syntax for arrays. This kind of syntax >> >> additions that add *no* functionality, should not be in PHP. >> > Yes, I believe we should stop this stream of alternative syntax propos= als >> > and concentrate on fixing existing functionality instead of adding les= s >> readable ways to do >> > the same thing. I would really like to keep PHP code easily readable, = not >> to turn it into >> > perl-ish write-only gibberish. >> >> 100% agreed, both about the cryptic nature of the proposed syntax and >> the need to focus on fixing existing issues. Strong -1 on a new >> syntax. > > > Aye, just realized watching the |=3D> reminded me of perl... say, I think= that > is what an aneurysm feels like. > One of the downsides to a language like perl was its Readability, fancy magic symbols and lack of readability in its source code. PHP has the opposite, very clear and readable C-like code. If PHP moves towards a more magic syntax language then it would be counter-productive. Closures are quirky enough to wrap your eyes/mind around. Making these more cryptic is very counter-productive. Like mentioned, the amount of typing is not a problem, its more so waiting on things to transfer, commit..etc Very big -1 for me on this one. Please don't let a plethora of PHP devs release code with this syntax. Regards, Paul Dragoonis.