[Python-ideas] Vectorization [was Re: Add list.join() please]

Chris Angelico rosuav at gmail.com
Sat Feb 2 18:36:03 EST 2019


On Sun, Feb 3, 2019 at 10:31 AM Steven D'Aprano <steve at pearwood.info> wrote:
> The dot arguably fails the "syntax should not look like grit on Tim's
> monitor" test (although attribute access already fails that test). I
> think the double-dot syntax looks like a typo, which is unfortunate.

Agreed, so I would like to see a different spelling of it. Pike has an
automap syntax that looks a lot like subscripting:

numbers[*] * 2

Borrowing that syntax would pass the grit test, and it currently isn't
valid syntax.

ChrisA


More information about the Python-ideas mailing list