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

> In python, we had to have tests dedicated to ensuring the right types were handled the right way. Is it a string or an array passed in? Welp, need a new test to cover that

  def foo(arg: str) -> int
vs.

  def foo(arg: List[Union[Set[int],Optional[Dict[str, Any]]]]) -> str
But...Python has a static type checker with a more expressive type system than Go.

Also, IIRC, better type inference.




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

Search: