in reply to shift v. indexing into an array
You may be interested in To push and pop or not to push and pop? and its replies.