On 2/21/2013 5:17 AM, David Muir wrote:
On 21/02/2013, at 6:12 AM, Lazare Inepologlou <linep...@gmail.com> wrote:


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 ==> $x->Surname );

I think your example proves the opposite. The fist example was much easier to 
read and understand than the second.
That all depends on how many languages you're versed in, the short syntax above is common in many modern languages and has no clarity issues for me.


--
-Clint

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to