[Python-ideas] Structural type checking for PEP 484
Stephen J. Turnbull
stephen at xemacs.org
Fri Sep 18 10:15:11 CEST 2015
Sven R. Kunze writes:
> On 17.09.2015 03:04, Stephen J. Turnbull wrote:
> > Sven R. Kunze writes:
> > > At least for me, it's not obvious anymore when to annotate
> > > and when not to annote. Just a random guess depending on the
> > > moon phase? :(
> >
> > No. There's a simple rule: if it's obvious to you that type
> > annotation is useful, do it. If it's not obvious you want it, you
> > don't, and you don't do it. You obviously are unlikely to do it for
> > some time, if ever. Me too.
>
> I was talking about specific examples (functions and methods). You were
> talking about the concept as a whole if I am not completely mistaken.
Nope. I was talking about each time you write a function.
More information about the Python-ideas
mailing list