List replication operator

Chris Angelico rosuav at gmail.com
Fri May 25 11:27:30 EDT 2018


On Fri, May 25, 2018 at 10:58 PM, bartc <bc at freeuk.com> wrote:
> I'm in general not in favour of piling in special symbols into a language
> just to solve some obscure or rare problem.
>
> As I went on to demonstrate, function-like syntax (or even actual functions)
> could do that job better, by describing what the operation does and not
> leaving people scratching their heads so much when they encounter that
> funny-looking operator hidden in 20,000 lines of code.
>
> As for '@', if a variable name can come before it /and/ after it, and either
> or both can be dotted, wouldn't that cause it to be highlighted as an email
> address in many circumstances? Such as in code posted here.
>
> (OK, let's try it and see what happens. My Thunderbird doesn't do previews
> so I will have to post it first:
>
>    abc at def
>    abc at def.ghi)
>
> I would find that rather annoying.
>

You're way WAY too late to debate the matrix multiplication operator.

ChrisA



More information about the Python-list mailing list