Reproducing a population. Should I `deepcopy` each individual?
问题 I simulate an evolving population in Julia. Somewhere in my code I randomly sample (sample weighted by the fitnesses of the individuals) individuals in order to form the next generation. Because the same individual can be sampled several times (sampling with replacement), I have to make that I copy the individuals and not only create a new pointer to the same data. Here is what the code looks like for the moment: ##### Reproduction ###### NewPopulation = Array(Individuals, nb_individuals_in