Audrey Tang wrote:

>Damian Conway wrote:
>  
>
>>Juerd wrote:
>>    
>>
>>>>and propose ".:" as a solution
>>>>        
>>>>
>>>    $xyzzy.:foo();
>>>    $fooz. :foo();
>>>    $foo.  :foo();
>>>      
>>>
>>This would make the enormous semantic difference between:
>>
>>       foo. :bar()
>>
>>and:
>>
>>       foo  :bar()
>>
>>depend on a visual difference of about four pixels. :-(
>>    
>>
>
>Good (and floating) point.  How about this:
>
>$antler.bar;
>$xyzzy.:bar;
>$blah. .bar;
>$foo.  .bar;
>
>That is, introduce only the non-space-filled .: variant, and retain the
>space-filled long dot.
>  
>

How about if we replace dot with -> and then you can specify any number
of dashes for alignment:

$antler->bar;
$xyzzy-->bar;
$blah--->bar;
$foo---->bar;

Or, to put it another way: what hard problem is it that you guys are
actively avoiding, that you've spent a week talking about making
substantial changes to the language in order to facilitate lining up
method names?

=Austin

Reply via email to