in reply to To parens or not parens in chained method calls

I personally prefer to remove all parens that are unnecessary for the compiler. Something else I tend to do with chained methods–

$obj->other_obj ->method; # /* I do it in JS too :P */ $.ajax({blah blah}) .done() .fail();

Replies are listed 'Best First'.
Re^2: To parens or not parens in chained method calls
by choroba (Cardinal) on Feb 16, 2017 at 09:40 UTC
    I've even met style where the indentation changed when a different object was returned:
    $object->color('red') ->width(3.7) ->child ->color('green') # etc.
    ($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,