News for hackers. Stuff that matters.
Re:The Next Step for Generics by dragonwriter on Wednesday June 17, 2020 @10:55AM (#23552166)
> 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.

There are no comments on this comment yet.