Re:Implications of Rewriting a Browser Component in Rust
by sanderjd on Monday March 04, 2019 @06:33PM
(#19306753)
I think the slightly odd or inconsistent thing is that rust has [] at all. I think of it as a compromise for people's familiarity with the operator. And if that's all it is, it makes sense that it behaves the way it does; I think a panic is more similar to what other languages with that operator do with an out of bound index than returning Option would be.
[ Parent
| on HN ]
There are no comments on this comment yet.