Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:66069 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69984 invoked from network); 20 Feb 2013 19:12:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Feb 2013 19:12:53 -0000 Authentication-Results: pb1.pair.com smtp.mail=linepogl@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=linepogl@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.182 as permitted sender) X-PHP-List-Original-Sender: linepogl@gmail.com X-Host-Fingerprint: 209.85.214.182 mail-ob0-f182.google.com Received: from [209.85.214.182] ([209.85.214.182:61637] helo=mail-ob0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 99/FB-19387-53025215 for ; Wed, 20 Feb 2013 14:12:53 -0500 Received: by mail-ob0-f182.google.com with SMTP id va7so7942104obc.41 for ; Wed, 20 Feb 2013 11:12:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=zUyx02XmJKuw5BLxozssqmN/N7/cgAN+E1k/UrMudzs=; b=ASizY0AOEBSEoeX/3lvHbam97umlphzLhtsP7XOK4ZKTw2wsGe8oNA3ktCR0nAc2V0 C+Wxirn2aZ1pT95r72M+T98djEi7QfIvFzH3QHEg4hZiry0USdSwuVWtuwObYFaxyzwd Nyhf93vNpY52ZHozxew/D25B6Btcdvd6/lCSrs0OK6Ksaz7kIk0bakV9HTr2m/9tibPi b+7gnYA9PfI0xvCnX6nn3+jgMlSlEtQgYbw7PBaIGw3Ak9WZ7QpiUnd0XI0bfEprduml GwYoLveb0lZyBt690/TE/5hkL/49/VhYtwk1AsC+1um92zTA1KnmEQPQVN0R47UbWIEU Xsgg== X-Received: by 10.60.22.137 with SMTP id d9mr9708572oef.91.1361387570657; Wed, 20 Feb 2013 11:12:50 -0800 (PST) MIME-Version: 1.0 Received: by 10.76.167.202 with HTTP; Wed, 20 Feb 2013 11:12:30 -0800 (PST) In-Reply-To: <288800174.20130220052301@cypressintegrated.com> References: <8490FC41-2696-4948-83A1-3931674183B0@gmail.com> <288800174.20130220052301@cypressintegrated.com> Date: Wed, 20 Feb 2013 20:12:30 +0100 Message-ID: To: Sanford Whiteman Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary=e89a8f838cff8cfa7904d62cbe3f Subject: Re: [PHP-DEV] [RFC] Short syntax for anonymous functions From: linepogl@gmail.com (Lazare Inepologlou) --e89a8f838cff8cfa7904d62cbe3f Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 2013/2/20 Sanford Whiteman > > It still looks like some random characters bashed together by a monkey > > with a keyboard. > > +1, I am a fiend for ternary expressions and crazy one-liners, but > this makes me want to go back and unroll everything I've ever done > into readable code. :) > > -- S. > Long code is not always equivalent to readable code. A shorter syntax could improve readability in *some* cases. Long: $users->OrderBy( function( $x ){ return $x->Surname; } ); Short: $users->OrderBy( $x =3D=3D> $x->Surname ); Lazare INEPOLOGLOU Ing=C3=A9nieur Logiciel --e89a8f838cff8cfa7904d62cbe3f--