2 ms·
To add to this, when we are reading/writing python source code there are types involved. The question becomes do we want the types to exist only in our heads or
by DerArzt 5y ago
To add to this, when we are reading/writing python source code there are types involved. The question becomes do we want the types to exist only in our heads or also denoted in the source.
To me even though the type annotations don't provide the same kind of guarantees that the type system of say Haskell does, they do increase the readability of the source code.
Finally (and this is more of my workflow), I utilize a build tool that has a mypy --strict call that will check my type annotations and alert me when things don't match up.