News for hackers. Stuff that matters.
Re:Why static languages suffer from complexity by maxwell86 on Thursday January 20, 2022 @03:02AM (#30006095)
You suggested that Python type hints are useful.

I laughed hard at that suggestion.

Can you maybe just show how to type a Python function such that it does the absurdly simple thing of taking a numpy array of integers?

   def fun(nump_array_of_ints: ???): ...
Just to show everyone just how "useful" type hints in Python _actually_ are.
Re:Why static languages suffer from complexity by vanusa on Thursday January 20, 2022 @09:27PM (#30018446)

  import numpy as np
  import numpy.typing as npt

  x = np.array([1, 2, 3])
  def foo(x: npt.NDArray[np.int_]) -> bool:
      return True