I realize that this would be a trivial syntactic sugar for `array[0]`, but - Symmetry is good. It makes the language easier to learn and the code easier to write and read. - Annoying the programmer is bad. If you often type `.lastItem` you will automatically start typing `.firstItem` even if it doesn't exist. - When using arrays with `.shift()` and `.pop()` (as opposed to iteration by index), using `.firstItem` and `.lastItem` makes the code more readable.
I realize that this would be a trivial syntactic sugar for
array[0], but.lastItemyou will automatically start typing.firstItemeven if it doesn't exist..shift()and.pop()(as opposed to iteration by index), using.firstItemand.lastItemmakes the code more readable.