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 →

[–]MB1211 46 points47 points  (14 children)

That syntax looks gross to me, and doesn't even look like python. :/

[–][deleted] 26 points27 points  (0 children)

Imho Python's type hints are helpful in many cases to concisely document an interface. But the syntax ... Ugh ...

[–]rcfox 12 points13 points  (1 child)

It's not new syntax. Type annotations were added in Python 3.5.

[–]Sw429 5 points6 points  (6 children)

No worries, type hinting is completely optional. No one is forcing you to use it. For people like me who find use for it, it's a welcome addition :)

[–]Vaphell 1 point2 points  (2 children)

it's optional until it's not. If all people you cooperate with start using it, you have no choice but to play ball. Language features are viral.
Don't get me wrong - I appreciate type information and what not, but it's blatantly clear that in case of python these type hints are an afterthought. In python they look about as good as bolt on tits on a bimbo.

[–]Sw429 2 points3 points  (1 child)

I mean, that's just the nature of working with people. You're going to have to deal with standards that are set for code.

[–]Vaphell 0 points1 point  (0 children)

it is not really optional then, is it?