Hacker News new | past | comments | ask | show | jobs | submit login

As I understand it those are not really complete though, are they? Do they offer algebraic data types and exhaustive pattern matching?



I'm not sure. There is Union[Foo, Bar] which matches instances of Foo or Bar [0] and there is @overload [1]. What would it need to be complete?

[0] https://docs.python.org/3/library/typing.html#typing.Union

[1] https://mypy.readthedocs.io/en/latest/more_types.html#functi...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: