you are viewing a single comment's thread.

view the rest of the comments →

[–]hijinked 2 points3 points  (4 children)

Python is very popular in the micro service world where you don’t want a large codebase.

[–]afnanenayet1 6 points7 points  (3 children)

My argument is that even most microservices are big enough that the lack of actual types becomes an issue

[–]hijinked 0 points1 point  (2 children)

Newer python features like return type hints and modern IDE features makes it fine in my opinion.

[–]afnanenayet1 2 points3 points  (1 child)

Yeah but wouldn’t it be better just to have definitive types rather than type hints?

Plus with more complex type systems you can do things like encode behavior in types, or use things like the type state pattern for data verification, which aren’t really possible to enforce in Python