Chris:

Is there any huge difference as regards performance and memory footprint between the two? Or is 2. basically 1. under the hood?

An associative array is a rather more complex data structure, so if you don't need it, use something simpler. There is difference in both the amount of memory used and performance (in many cases such difference doesn't matter). In D there are also differences in the way they are initialized from a null or fat null.

Bye,
bearophile

Reply via email to