PEP 526 - var annotations and the spirit of python

Chris Angelico rosuav at gmail.com
Sun Jul 1 14:15:04 EDT 2018


On Mon, Jul 2, 2018 at 3:55 AM, Abdur-Rahmaan Janhangeer
<arj.python at gmail.com> wrote:
> i meant that x: int = 3 is dangerously close to int x = 3,
>
> in the long run, you'll come across people who come from other languages
> wanting to java/c style their code and end up sprinkling a lot of these,
> it'll be a sad day for me

People already write code like this:

for i in range(len(stuff)): #{
    frobnicate(stuff[i])
#}

I'm sure people will misuse type hints too. What of it? Does it
destroy Python when people use it inefficiently?

ChrisA


More information about the Python-list mailing list