Re:Why did we choose Rust to develop TiKV?
by candiodari on Wednesday September 27, 2017 @11:09PM
(#15354253)
Ok. Now consider what happens with slices/arrays instead of maps.
In python, the equivalents are:
So are these "the same" ? No.
[ Parent
| on HN ]
Re:Why did we choose Rust to develop TiKV?
by Vendan on Thursday September 28, 2017 @08:23AM
(#15356558)
more accurately it's
for index := range list {}
and for index, value := range list {}
Yes, these 2 version do perform very similarly, you are just ignoring the second return value in the first version, i.e.: for index, _ := range list {}