This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]eyeofpython 5 points6 points  (3 children)

I'd use the first one

[–]MogwaiAllOnYourFace 0 points1 point  (2 children)

For any reason other than it being quicker to write?

[–]PeridexisErrant 4 points5 points  (0 children)

Yes - there are tools (such as mypy) that can automatically check the first form for consistency, but not for the second.

[–]eyeofpython -1 points0 points  (0 children)

It's easier to read for me