John Porter wrote:
> 
> David L. Nicol wrote:
> >
> >
> >       print "Found It at position ${_:n}!\n" if /$seek/ foreach @items
> 
> If we are going to be throwing around attributes like that, why
> don't we switch to using the ubiquitously recognizable dot instead
> of colon?
> 
>         for my $iter ( @things ) {
>                 print "index= ", $iter.indexof, "\n";


I hope that was a rhetorical question, but here is the rhetorical answer:

Because the ubiquitously recognizable dot is already in use as the
string concat operator in this language, and overloading it would
cause far far far too much ambiguity.  This answer also goes for schemes
for optimising 

        ->

into one character.

Reply via email to