in python
from typing import List def foobar(x: int) -> List[int]: r: List[int] = [] r = list(range(int)) return r
정적 타입 시스템을 도입했더라면 Github에 공개적으로 올라온 코드의 버그중 최소 15%는 커밋조차 되지 못하고 잡혔을 것이다.
— To Type or Not to Type: Quantifying Detectable Bugs in JavaScript
Without type annotations, basic reasoning such as figuring out the valid arguments to a function, or the possible return value types, becomes a hard problem.
— Our journey to type checking 4 million lines of Python
https://mypy.readthedocs.io/en/stable/existing_code.html
By Seonghyeon Kim
Newbie developer