some_integer_array.at(i) some_integer_array.at(i) let integer: i32 = some_integer_array.at(i);
let reference: &i32 = &some_integer_array.at(i);
with the desired semantics, without introducing new language concepts.In any case, we did use methods for indexing vectors for a while and it was quite annoying; the shorter syntax is nice.
But can you explain it to me? Because his explanation makes sense to me: they can't support that syntax, including getting references, without introducing new concepts. How does what your proposing get around introducing those new concepts?
When I said "some_integer_array.at(i)" I certainly didn't mean "rename both things".
Alternatively, having one additional magic kind/trait/... to denote "addressable" would be more manageable than shoe-horning things into the language's syntax which can – at this change – not be fixed anymore.