One-sided ranges in array indexes

Note that the a[:x] syntax would have to work not only for literals like 3, but general expressions, as it does currently. There you would run into breaking changes as : currently quotes the expression. Cf

5 Likes