Framework for improved array definition