HackerTrans
TopNewTrendsCommentsPastAskShowJobs

qwefsdf

no profile record

comments

qwefsdf
·4 tahun yang lalu·discuss
With type hints you would model this as a Union type, i.e., Union[int, str]. This is perfectly legal with mypy and other Python type checkers.
qwefsdf
·4 tahun yang lalu·discuss
That's an Optional[int]. It's not "mixed types", it's a union type.
qwefsdf
·4 tahun yang lalu·discuss
Anybody claiming it's almost Python is kidding themselves. This compiler needs to do static type checking. This is inherently impossible in Python. Not just because of some obscure corner cases that nobody uses. It's baked into the language itself.

Reality-check: Why do you think type hints and type checkers like mypy and pyright take such a long time to get going and even they are not there yet? If this was all so easy with just ignoring some obscure rarely used features then mypy would work with essentially no type annotations, all just automatic inferences. Anybody who has tried to work with type annotations in Python knows how hard this is.

So, those guys are quite obviously overselling their product. I can understand it, academic life is hard, and once you've completed your Ph.D., what can you do. You need to stand out. But these claims don't pass the smell test, sorry.