Hacker News new | ask | show | jobs
by jamann 1096 days ago
> an array of structures, the compiler/language should be able to turn that into a structure of arrays

class Point:

    i: int

    def get_x():

        return x_array[i]
# shift every point

x_array += 1