4 ms·
Not `map[k] = v;`, which is deal breaker.
by eddyb 12y ago
Not `map[k] = v;`, which is deal breaker.
- dbaupp 12y agoOther languages don't offer indexing sugar at all, so even minimal sugar for retrieving elements might be nice. There are however, more significant road blocks, like how to handle returning references (basically, we would be left in a similar situation to the current Index trait, which has its uses, but isn't what most indexing should do).
- eddyb 12y agoRight, that too, no first-class lvalues in Rust.