News for hackers. Stuff that matters.
Re:Static types in Python by jstimpfle on Friday October 14, 2016 @11:35AM (#12708765)
> That's why you define your functions as taking generic Iterators instead, which generalize pointers to arrays. Or, in more modern style, generic containers.

Or, in yet more modern style as slices. Or, ...

The only thing I miss from pointers + indices is optional bounds checking. Otherwise, it's the perfect tool for productivity (because readability, writeability, portability, modularity).

Re:Static types in Python by gpderetta on Friday October 14, 2016 @05:07PM (#12711093)
Pointer+size only allow passing memory-contiguous containers.