Ali Çehreli:

Do not use enum for arrays and associative arrays, because enum is like copy+pasting the definition everywhere the enum is used. It is expensive to initialize arrays and AAs.

Lot of time ago I think Don suggested to disallow enum dynamic and associave arrays. enum is partially broken, but I am not seeing much effort in trying to fix it.

Bye,
bearophile

Reply via email to