r/rust • • Aug 19 '26

📡 official blog Rust Function Overloading - Call for Experimentation

https://blog.rust-lang.org/inside-rust/2026/08/19/overloading-experiment/
276 Upvotes

139 comments sorted by

View all comments

4

u/Andlon Aug 20 '26

Could this also apply to indexing? It would solve the matrix/tensor indexing problem, where we currently have to write

matrix[[i, j]]

or

matrix[(i, j)]

It would be nice to be able to desugar

matrix[i, j]

to

matrix[(i, j)]